
;
;
;     Model statements for module:  Create 4
;

543$          CREATE,        1,MinutesToBaseTime(0.0001),Entity rb1rec# c1:MinutesToBaseTime(1440):NEXT(544$);

544$          ASSIGN:        Create for receiving b shift1 c1.NumberOut=Create for receiving b shift1 c1.NumberOut + 1
                             :NEXT(115$);


;
;
;     Model statements for module:  Decide 98
;
115$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),547$,Yes:
                             Else,548$,Yes;
547$          ASSIGN:        Decide 98.NumberOut True=Decide 98.NumberOut True + 1:NEXT(541$);

548$          ASSIGN:        Decide 98.NumberOut False=Decide 98.NumberOut False + 1:NEXT(116$);


;
;
;     Model statements for module:  Assign 198
;
541$          ASSIGN:        receiptb1# c1=
                             disc(0.924,0,0.929,1,0.940,2,0.946,6,0.951,8,0.962,9,0.973,15,0.978,16,0.984,17,0.989,18,0.995,19,1,21,67)
                             :NEXT(117$);


;
;
;     Model statements for module:  Decide 99
;
117$          BRANCH,        1:
                             If,receiptb1# c1==0,95$,Yes:
                             If,receiptb1# c1==1,118$,Yes:
                             Else,119$,Yes;

;
;
;     Model statements for module:  Separate 5
;
119$          DUPLICATE,     100 - 50:
                             receiptb1# c1-1,553$,50:NEXT(552$);

552$          ASSIGN:        Separate 5.NumberOut Orig=Separate 5.NumberOut Orig + 1:NEXT(118$);

553$          ASSIGN:        Separate 5.NumberOut Dup=Separate 5.NumberOut Dup + 1:NEXT(118$);


;
;
;     Model statements for module:  Process 10
;
118$          ASSIGN:        Process 10.NumberIn=Process 10.NumberIn + 1:
                             Process 10.WIP=Process 10.WIP+1;
583$          STACK,         1:Save:NEXT(557$);

557$          QUEUE,         Process 10.Queue;
556$          SEIZE,         2,VA:
                             Resource 4_1,1:NEXT(555$);

555$          DELAY:         HoursToBaseTime(expo(10/receiptb1# c1,3)),,VA:NEXT(598$);

598$          ASSIGN:        Process 10.WaitTime=Process 10.WaitTime + Diff.WaitTime;
562$          TALLY:         Process 10.WaitTimePerEntity,Diff.WaitTime,1;
564$          TALLY:         Process 10.TotalTimePerEntity,Diff.StartTime,1;
588$          ASSIGN:        Process 10.VATime=Process 10.VATime + Diff.VATime;
589$          TALLY:         Process 10.VATimePerEntity,Diff.VATime,1;
554$          RELEASE:       Resource 4_1,1;
603$          STACK,         1:Destroy:NEXT(602$);

602$          ASSIGN:        Process 10.NumberOut=Process 10.NumberOut + 1:
                             Process 10.WIP=Process 10.WIP-1:NEXT(87$);


;
;
;     Model statements for module:  Assign 57
;
87$           ASSIGN:        producttype=2:NEXT(180$);


;
;
;     Model statements for module:  Decide 121
;
180$          BRANCH,        1:
                             If,producttype==1,179$,Yes:
                             If,producttype==2,181$,Yes:
                             Else,182$,Yes;
182$          COUNT:         receiptctruck,1:NEXT(173$);


;
;
;     Model statements for module:  Assign 78
;
173$          ASSIGN:        receiptqenter=tnow:NEXT(171$);

171$          QUEUE,         receiptdockqueue;
161$          SEIZE,         2,Other:
                             SELECT(Docks,LRC,index),1:NEXT(162$);


;
;
;     Model statements for module:  Decide 116
;
162$          BRANCH,        1:
                             If,docks(index)==dock1,607$,Yes:
                             Else,608$,Yes;
607$          ASSIGN:        Decide 116.NumberOut True=Decide 116.NumberOut True + 1:NEXT(174$);

608$          ASSIGN:        Decide 116.NumberOut False=Decide 116.NumberOut False + 1:NEXT(297$);

174$          TALLY:         time in receiptq at d1,tnow-receiptqenter,1:NEXT(1$);


;
;
;     Model statements for module:  Assign 2
;
1$            ASSIGN:        truckcap=8:
                             dockno=1:NEXT(2$);

2$            DUPLICATE:     truckcap-1,69$:NEXT(69$);


;
;
;     Model statements for module:  Process 1
;
69$           ASSIGN:        Unloading from dock1.NumberIn=Unloading from dock1.NumberIn + 1:
                             Unloading from dock1.WIP=Unloading from dock1.WIP+1;
638$          STACK,         1:Save:NEXT(612$);

612$          QUEUE,         Unloading from dock1.Queue;
611$          SEIZE,         1,VA:
                             SELECT(TransSet4,SNB, ),1:NEXT(610$);

610$          DELAY:         SecondsToBaseTime(UNIF(62,83,61)),,VA:NEXT(653$);

653$          ASSIGN:        Unloading from dock1.WaitTime=Unloading from dock1.WaitTime + Diff.WaitTime;
617$          TALLY:         Unloading from dock1.WaitTimePerEntity,Diff.WaitTime,1;
619$          TALLY:         Unloading from dock1.TotalTimePerEntity,Diff.StartTime,1;
643$          ASSIGN:        Unloading from dock1.VATime=Unloading from dock1.VATime + Diff.VATime;
644$          TALLY:         Unloading from dock1.VATimePerEntity,Diff.VATime,1;
609$          RELEASE:       SELECT(TransSet4,LAST),1;
658$          STACK,         1:Destroy:NEXT(657$);

657$          ASSIGN:        Unloading from dock1.NumberOut=Unloading from dock1.NumberOut + 1:
                             Unloading from dock1.WIP=Unloading from dock1.WIP-1:NEXT(299$);


;
;
;     Model statements for module:  Assign 110
;
299$          ASSIGN:        beginning time for putaway from d1=tnow:NEXT(165$);

165$          ASSIGN:        product3stock=(producttype==3)*(product3stock+1)+(producttype<>3)*(product3stock+0):
                             product2stock=(producttype==2)*(product2stock+1)+(producttype<>2)*(product2stock+0):
                             product1stock=(producttype==1)*(product1stock+1)+(producttype<>1)*(product1stock+0);
167$          WRITE,         stockr:
                             totalstock,
                             tnow:NEXT(3$);


;
;
;     Model statements for module:  Assign 3
;
3$            ASSIGN:        i=1:NEXT(4$);


;
;
;     Model statements for module:  Assign 4
;
4$            ASSIGN:        replaced=0:NEXT(5$);

5$            WHILE:         (replaced==0):NEXT(8$);


;
;
;     Model statements for module:  Decide 3
;
8$            BRANCH,        1:
                             If,(LocationA(i,1) == 0) ||  ( (producttype  ==  LocationA (i,2)) && (LocationA(i,1) < Capacity) ),
                             660$,Yes:
                             Else,661$,Yes;
660$          ASSIGN:        Decide 3.NumberOut True=Decide 3.NumberOut True + 1:NEXT(7$);

661$          ASSIGN:        Decide 3.NumberOut False=Decide 3.NumberOut False + 1:NEXT(10$);

7$            ASSIGN:        LocationA(i,1)=LocationA(i,1)+1:
                             LocationA(i,2)=producttype:NEXT(11$);


;
;
;     Model statements for module:  Assign 11
;
11$           ASSIGN:        Locationtype=1:NEXT(57$);


;
;
;     Model statements for module:  Decide 45
;
57$           BRANCH,        1:
                             If,dockno==1,662$,Yes:
                             Else,663$,Yes;
662$          ASSIGN:        Decide 45.NumberOut True=Decide 45.NumberOut True + 1:NEXT(508$);

663$          ASSIGN:        Decide 45.NumberOut False=Decide 45.NumberOut False + 1:NEXT(507$);


;
;
;     Model statements for module:  Assign 183
;
508$          ASSIGN:        width1=
                             (LocationA(i,1)==1)*4+(LocationA(i,1)==2)*3+(LocationA(i,1)==3)*2+(LocationA(i,1)==4)*1+(LocationA(i,1)==5)*0:
                             distance1=20+i*1+width1:NEXT(13$);


;
;
;     Model statements for module:  Assign 13
;
13$           ASSIGN:        replaced=1:NEXT(14$);

14$           ENDWHILE:NEXT(54$);


;
;
;     Model statements for module:  Decide 44
;
54$           BRANCH,        1:
                             If,dockno==1,664$,Yes:
                             Else,665$,Yes;
664$          ASSIGN:        Decide 44.NumberOut True=Decide 44.NumberOut True + 1:NEXT(16$);

665$          ASSIGN:        Decide 44.NumberOut False=Decide 44.NumberOut False + 1:NEXT(55$);


;
;
;     Model statements for module:  Seize 2
;
16$           QUEUE,         Seizing a forklift from forklift set at receiving ramp1.Queue;
              SEIZE,         2,Other:
                             SELECT(TransSet1,CYC, trans_no1),1:NEXT(667$);

667$          DELAY:         0.0,,VA:NEXT(527$);


;
;
;     Model statements for module:  Decide 229
;
527$          BRANCH,        1:
                             If,stock exceeded<>1,668$,Yes:
                             Else,669$,Yes;
668$          ASSIGN:        Decide 229.NumberOut True=Decide 229.NumberOut True + 1:NEXT(18$);

669$          ASSIGN:        Decide 229.NumberOut False=Decide 229.NumberOut False + 1:NEXT(528$);


;
;
;     Model statements for module:  Delay 1
;
18$           DELAY:         
                             SecondsToBaseTime((Locationtype==1)*((34.521+(0.915*distance1)+NORM(0,7.3))*2)+(Locationtype==2)*((34.521+(0.915*distance3)+NORM(0,7.3))*2)+(Locationtype==3)*((34.521+(0.915*distance5)+NORM(0,7.3))*2)+(Locationtype==4)*((34.521+(0.915*distance7)+NORM(0,7.3))*2)),,
                             Other:NEXT(19$);

19$           RELEASE:       Member(TransSet1, Trans_No1),1;
301$          TALLY:         time for putaway from d1,tnow-beginning time for putaway from d1,1;
211$          ASSIGN:        #unloaded1=#unloaded1+1:NEXT(20$);


;
;
;     Model statements for module:  Decide 6
;
20$           BRANCH,        1:
                             If,#unloaded1==truckcap,670$,Yes:
                             Else,671$,Yes;
670$          ASSIGN:        Decide 6.NumberOut True=Decide 6.NumberOut True + 1:NEXT(21$);

671$          ASSIGN:        Decide 6.NumberOut False=Decide 6.NumberOut False + 1:NEXT(15$);


;
;
;     Model statements for module:  Release 1
;
21$           RELEASE:       dock1,1:NEXT(184$);

184$          TALLY:         time in system from d1,tnow-receiptqenter,1;
212$          ASSIGN:        #unloaded1=#unloaded1-#unloaded1:NEXT(15$);


;
;
;     Model statements for module:  Dispose 1
;
15$           ASSIGN:        Dispose 1.NumberOut=Dispose 1.NumberOut + 1;
672$          DISPOSE:       Yes;


;
;
;     Model statements for module:  Delay 14
;
528$          DELAY:         SecondsToBaseTime(((34.521+(0.915*averagedistance)+Norm(0,7.3))*2)),,Other:NEXT(19$);


;
;
;     Model statements for module:  Seize 15
;
55$           QUEUE,         Seizing a forklift from forklift set at receiving ramp2.Queue;
              SEIZE,         2,Other:
                             SELECT(TransSet2,CYC, trans_no2),1:NEXT(674$);

674$          DELAY:         0.0,,VA:NEXT(530$);


;
;
;     Model statements for module:  Decide 230
;
530$          BRANCH,        1:
                             If,stock exceeded<>1,675$,Yes:
                             Else,676$,Yes;
675$          ASSIGN:        Decide 230.NumberOut True=Decide 230.NumberOut True + 1:NEXT(58$);

676$          ASSIGN:        Decide 230.NumberOut False=Decide 230.NumberOut False + 1:NEXT(529$);


;
;
;     Model statements for module:  Delay 11
;
58$           DELAY:         
                             SecondsToBaseTime((Locationtype==1)*((34.521+(0.915*distance2)+NORM(0,7.3))*2)+(Locationtype==2)*((34.521+(0.915*distance4)+NORM(0,7.3))*2)+(Locationtype==3)*((34.521+(0.915*distance6)+NORM(0,7.3))*2)+(Locationtype==4)*((34.521+(0.915*distance8)+NORM(0,7.3))*2)),,
                             Other:NEXT(59$);

59$           RELEASE:       Member(TransSet2, Trans_No2),1;
302$          TALLY:         time for putaway from d2,tnow-beginning time for putaway from d2,1;
213$          ASSIGN:        #unloaded2=#unloaded2+1:NEXT(61$);


;
;
;     Model statements for module:  Decide 56
;
61$           BRANCH,        1:
                             If,#unloaded2==truckcap,677$,Yes:
                             Else,678$,Yes;
677$          ASSIGN:        Decide 56.NumberOut True=Decide 56.NumberOut True + 1:NEXT(62$);

678$          ASSIGN:        Decide 56.NumberOut False=Decide 56.NumberOut False + 1:NEXT(60$);


;
;
;     Model statements for module:  Release 15
;
62$           RELEASE:       dock2,1:NEXT(183$);

183$          TALLY:         time in system from d2,tnow-receiptqenter,1;
214$          ASSIGN:        #unloaded2=#unloaded2-#unloaded2:NEXT(60$);


;
;
;     Model statements for module:  Dispose 15
;
60$           ASSIGN:        Dispose 15.NumberOut=Dispose 15.NumberOut + 1;
679$          DISPOSE:       Yes;


;
;
;     Model statements for module:  Delay 15
;
529$          DELAY:         SecondsToBaseTime(((34.521+(0.915*averagedistance)+Norm(0,7.3))*2)),,Other:NEXT(59$);


;
;
;     Model statements for module:  Assign 182
;
507$          ASSIGN:        width2=
                             (LocationA(i,1)==1)*4+(LocationA(i,1)==2)*3+(LocationA(i,1)==3)*2+(LocationA(i,1)==4)*1+(LocationA(i,1)==5)*0:
                             distance2=23+i*1+width2:NEXT(13$);


;
;
;     Model statements for module:  Decide 4
;
10$           BRANCH,        1:
                             If,
                             ((LocationB(i,1) == 0) ||  ( (producttype  ==  LocationB (i,2)) && (LocationB(i,1) < Capacity) )),
                             680$,Yes:
                             Else,681$,Yes;
680$          ASSIGN:        Decide 4.NumberOut True=Decide 4.NumberOut True + 1:NEXT(6$);

681$          ASSIGN:        Decide 4.NumberOut False=Decide 4.NumberOut False + 1:NEXT(71$);

6$            ASSIGN:        LocationB(i,1)=LocationB(i,1)+1:
                             LocationB(i,2)=producttype:NEXT(12$);


;
;
;     Model statements for module:  Assign 12
;
12$           ASSIGN:        Locationtype=2:NEXT(509$);


;
;
;     Model statements for module:  Decide 223
;
509$          BRANCH,        1:
                             If,dockno==1,682$,Yes:
                             Else,683$,Yes;
682$          ASSIGN:        Decide 223.NumberOut True=Decide 223.NumberOut True + 1:NEXT(510$);

683$          ASSIGN:        Decide 223.NumberOut False=Decide 223.NumberOut False + 1:NEXT(511$);


;
;
;     Model statements for module:  Assign 184
;
510$          ASSIGN:        width3=
                             (LocationB(i,1)==1)*4+(LocationB(i,1)==2)*3+(LocationB(i,1)==3)*2+(LocationB(i,1)==4)*1+(LocationB(i,1)==5)*0:
                             distance3=20+i*1+width3:NEXT(13$);


;
;
;     Model statements for module:  Assign 186
;
511$          ASSIGN:        width4=
                             (LocationB(i,1)==1)*4+(LocationB(i,1)==2)*3+(LocationB(i,1)==3)*2+(LocationB(i,1)==4)*1+(LocationB(i,1)==5)*0:
                             distance4=23+i*1+width4:NEXT(13$);


;
;
;     Model statements for module:  Decide 67
;
71$           BRANCH,        1:
                             If,((LocationC(i,1) == 0) ||  ( (producttype  ==  LocationC (i,2)) && (LocationC(i,1) < 8) )),684$,
                             Yes:
                             Else,685$,Yes;
684$          ASSIGN:        Decide 67.NumberOut True=Decide 67.NumberOut True + 1:NEXT(72$);

685$          ASSIGN:        Decide 67.NumberOut False=Decide 67.NumberOut False + 1:NEXT(150$);

72$           ASSIGN:        LocationC(i,1)=LocationC(i,1)+1:
                             LocationC(i,2)=producttype:NEXT(73$);


;
;
;     Model statements for module:  Assign 49
;
73$           ASSIGN:        Locationtype=3:NEXT(74$);


;
;
;     Model statements for module:  Decide 68
;
74$           BRANCH,        1:
                             If,dockno==1,686$,Yes:
                             Else,687$,Yes;
686$          ASSIGN:        Decide 68.NumberOut True=Decide 68.NumberOut True + 1:NEXT(75$);

687$          ASSIGN:        Decide 68.NumberOut False=Decide 68.NumberOut False + 1:NEXT(76$);


;
;
;     Model statements for module:  Assign 51
;
75$           ASSIGN:        width5=
                             (LocationC(i,1)==1)*7+(LocationC(i,1)==2)*6+(LocationC(i,1)==3)*5+(LocationC(i,1)==4)*4+(LocationC(i,1)==5)*3+(LocationC(i,1)==6)*2+(LocationC(i,1)==7)*1+(LocationC(i,1)==8)*0:
                             distance5=13+i*1+width5:NEXT(13$);


;
;
;     Model statements for module:  Assign 52
;
76$           ASSIGN:        width6=
                             (LocationC(i,1)==1)*7+(LocationC(i,1)==2)*6+(LocationC(i,1)==3)*5+(LocationC(i,1)==4)*4+(LocationC(i,1)==5)*3+(LocationC(i,1)==6)*2+(LocationC(i,1)==7)*1+(LocationC(i,1)==8)*0:
                             distance6=14+i*1+width6:NEXT(13$);


;
;
;     Model statements for module:  Decide 110
;
150$          BRANCH,        1:
                             If,((LocationD(i,1) == 0) ||  ( (producttype  ==  LocationD (i,2)) && (LocationD(i,1) < 8) )),688$,
                             Yes:
                             Else,689$,Yes;
688$          ASSIGN:        Decide 110.NumberOut True=Decide 110.NumberOut True + 1:NEXT(151$);

689$          ASSIGN:        Decide 110.NumberOut False=Decide 110.NumberOut False + 1:NEXT(9$);

151$          ASSIGN:        LocationD(i,1)=LocationD(i,1)+1:
                             LocationD(i,2)=producttype:NEXT(152$);


;
;
;     Model statements for module:  Assign 76
;
152$          ASSIGN:        Locationtype=4:NEXT(512$);


;
;
;     Model statements for module:  Decide 224
;
512$          BRANCH,        1:
                             If,dockno==1,690$,Yes:
                             Else,691$,Yes;
690$          ASSIGN:        Decide 224.NumberOut True=Decide 224.NumberOut True + 1:NEXT(513$);

691$          ASSIGN:        Decide 224.NumberOut False=Decide 224.NumberOut False + 1:NEXT(514$);


;
;
;     Model statements for module:  Assign 189
;
513$          ASSIGN:        width7=
                             (LocationD(i,1)==1)*7+(LocationD(i,1)==2)*6+(LocationD(i,1)==3)*5+(LocationD(i,1)==4)*4+(LocationD(i,1)==5)*3+(LocationD(i,1)==6)*2+(LocationD(i,1)==7)*1+(LocationD(i,1)==8)*0:
                             distance7=13+i*1+width7:NEXT(13$);


;
;
;     Model statements for module:  Assign 190
;
514$          ASSIGN:        width8=
                             (LocationD(i,1)==1)*7+(LocationD(i,1)==2)*6+(LocationD(i,1)==3)*5+(LocationD(i,1)==4)*4+(LocationD(i,1)==5)*3+(LocationD(i,1)==6)*2+(LocationD(i,1)==7)*1+(LocationD(i,1)==8)*0:
                             distance8=14+i*1+width8:NEXT(13$);


;
;
;     Model statements for module:  Assign 10
;
9$            ASSIGN:        i=i+1:NEXT(525$);


;
;
;     Model statements for module:  Decide 228
;
525$          BRANCH,        1:
                             If,i<=231,692$,Yes:
                             Else,693$,Yes;
692$          ASSIGN:        Decide 228.NumberOut True=Decide 228.NumberOut True + 1:NEXT(14$);

693$          ASSIGN:        Decide 228.NumberOut False=Decide 228.NumberOut False + 1:NEXT(526$);


;
;
;     Model statements for module:  Assign 196
;
526$          ASSIGN:        stock exceeded=1:NEXT(521$);


;
;
;     Model statements for module:  Decide 227
;
521$          BRANCH,        1:
                             If,producttype==1,522$,Yes:
                             If,producttype==2,523$,Yes:
                             Else,524$,Yes;
524$          ASSIGN:        stock3=stock3+1:NEXT(54$);

522$          ASSIGN:        stock1=stock1+1:NEXT(54$);

523$          ASSIGN:        stock2=stock2+1:NEXT(54$);

297$          TALLY:         time in receiptq at d2,tnow-receiptqenter,1:NEXT(22$);


;
;
;     Model statements for module:  Assign 15
;
22$           ASSIGN:        truckcap=8:
                             dockno=2:NEXT(23$);

23$           DUPLICATE:     truckcap-1,70$:NEXT(70$);


;
;
;     Model statements for module:  Process 2
;
70$           ASSIGN:        Unloading from dock2.NumberIn=Unloading from dock2.NumberIn + 1:
                             Unloading from dock2.WIP=Unloading from dock2.WIP+1;
725$          STACK,         1:Save:NEXT(699$);

699$          QUEUE,         Unloading from dock2.Queue;
698$          SEIZE,         1,VA:
                             SELECT(TransSet5,SNB, ),1:NEXT(697$);

697$          DELAY:         SecondsToBaseTime(UNIF(62,83,62)),,VA:NEXT(740$);

740$          ASSIGN:        Unloading from dock2.WaitTime=Unloading from dock2.WaitTime + Diff.WaitTime;
704$          TALLY:         Unloading from dock2.WaitTimePerEntity,Diff.WaitTime,1;
706$          TALLY:         Unloading from dock2.TotalTimePerEntity,Diff.StartTime,1;
730$          ASSIGN:        Unloading from dock2.VATime=Unloading from dock2.VATime + Diff.VATime;
731$          TALLY:         Unloading from dock2.VATimePerEntity,Diff.VATime,1;
696$          RELEASE:       SELECT(TransSet5,LAST),1;
745$          STACK,         1:Destroy:NEXT(744$);

744$          ASSIGN:        Unloading from dock2.NumberOut=Unloading from dock2.NumberOut + 1:
                             Unloading from dock2.WIP=Unloading from dock2.WIP-1:NEXT(300$);


;
;
;     Model statements for module:  Assign 111
;
300$          ASSIGN:        beginning time for putaway from d2=tnow:NEXT(165$);

179$          COUNT:         receiptatruck,1:NEXT(173$);

181$          COUNT:         receiptbtruck,1:NEXT(173$);


;
;
;     Model statements for module:  Dispose 16
;
95$           ASSIGN:        Dispose 16.NumberOut=Dispose 16.NumberOut + 1;
747$          DISPOSE:       Yes;


;
;
;     Model statements for module:  Assign 69
;
116$          ASSIGN:        receiptb2# c1=
                             disc(0.929,0,0.935,1,0.946,7,0.957,8,0.967,12,0.973,15,0.978,17,0.984,19,0.989,21,0.995,27,1,28,68)
                             :NEXT(120$);


;
;
;     Model statements for module:  Decide 100
;
120$          BRANCH,        1:
                             If,receiptb2# c1==0,95$,Yes:
                             If,receiptb2# c1==1,121$,Yes:
                             Else,122$,Yes;

;
;
;     Model statements for module:  Separate 6
;
122$          DUPLICATE,     100 - 50:
                             receiptb2# c1-1,752$,50:NEXT(751$);

751$          ASSIGN:        Separate 6.NumberOut Orig=Separate 6.NumberOut Orig + 1:NEXT(121$);

752$          ASSIGN:        Separate 6.NumberOut Dup=Separate 6.NumberOut Dup + 1:NEXT(121$);


;
;
;     Model statements for module:  Process 11
;
121$          ASSIGN:        Process 11.NumberIn=Process 11.NumberIn + 1:
                             Process 11.WIP=Process 11.WIP+1;
782$          STACK,         1:Save:NEXT(756$);

756$          QUEUE,         Process 11.Queue;
755$          SEIZE,         2,VA:
                             Resource 5,1:NEXT(754$);

754$          DELAY:         HoursToBaseTime(expo(14/receiptb2# c1,4)),,VA:NEXT(797$);

797$          ASSIGN:        Process 11.WaitTime=Process 11.WaitTime + Diff.WaitTime;
761$          TALLY:         Process 11.WaitTimePerEntity,Diff.WaitTime,1;
763$          TALLY:         Process 11.TotalTimePerEntity,Diff.StartTime,1;
787$          ASSIGN:        Process 11.VATime=Process 11.VATime + Diff.VATime;
788$          TALLY:         Process 11.VATimePerEntity,Diff.VATime,1;
753$          RELEASE:       Resource 5,1;
802$          STACK,         1:Destroy:NEXT(801$);

801$          ASSIGN:        Process 11.NumberOut=Process 11.NumberOut + 1:
                             Process 11.WIP=Process 11.WIP-1:NEXT(87$);


;
;
;     Model statements for module:  Create 5
;

804$          CREATE,        1,MinutesToBaseTime(0.0001),Entity rc1rec# c1:MinutesToBaseTime(1440):NEXT(805$);

805$          ASSIGN:        Create for receiving c shift1 c1.NumberOut=Create for receiving c shift1 c1.NumberOut + 1
                             :NEXT(123$);


;
;
;     Model statements for module:  Decide 101
;
123$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),808$,Yes:
                             Else,809$,Yes;
808$          ASSIGN:        Decide 101.NumberOut True=Decide 101.NumberOut True + 1:NEXT(124$);

809$          ASSIGN:        Decide 101.NumberOut False=Decide 101.NumberOut False + 1:NEXT(125$);


;
;
;     Model statements for module:  Assign 70
;
124$          ASSIGN:        receiptc1# c1=disc(0.848,0,0.859,1,0.880,2,0.902,3,0.935,4,0.962,5,0.973,6,0.989,7,0.995,8,1,10,69)
                             :NEXT(126$);


;
;
;     Model statements for module:  Decide 102
;
126$          BRANCH,        1:
                             If,receiptc1# c1==0,95$,Yes:
                             If,receiptc1# c1==1,127$,Yes:
                             Else,128$,Yes;

;
;
;     Model statements for module:  Separate 7
;
128$          DUPLICATE,     100 - 50:
                             receiptc1# c1-1,814$,50:NEXT(813$);

813$          ASSIGN:        Separate 7.NumberOut Orig=Separate 7.NumberOut Orig + 1:NEXT(127$);

814$          ASSIGN:        Separate 7.NumberOut Dup=Separate 7.NumberOut Dup + 1:NEXT(127$);


;
;
;     Model statements for module:  Process 12
;
127$          ASSIGN:        Process 12.NumberIn=Process 12.NumberIn + 1:
                             Process 12.WIP=Process 12.WIP+1;
844$          STACK,         1:Save:NEXT(818$);

818$          QUEUE,         Process 12.Queue;
817$          SEIZE,         2,VA:
                             Resource 6,1:NEXT(816$);

816$          DELAY:         HoursToBaseTime(expo(10/receiptc1# c1,5)),,VA:NEXT(859$);

859$          ASSIGN:        Process 12.WaitTime=Process 12.WaitTime + Diff.WaitTime;
823$          TALLY:         Process 12.WaitTimePerEntity,Diff.WaitTime,1;
825$          TALLY:         Process 12.TotalTimePerEntity,Diff.StartTime,1;
849$          ASSIGN:        Process 12.VATime=Process 12.VATime + Diff.VATime;
850$          TALLY:         Process 12.VATimePerEntity,Diff.VATime,1;
815$          RELEASE:       Resource 6,1;
864$          STACK,         1:Destroy:NEXT(863$);

863$          ASSIGN:        Process 12.NumberOut=Process 12.NumberOut + 1:
                             Process 12.WIP=Process 12.WIP-1:NEXT(88$);


;
;
;     Model statements for module:  Assign 58
;
88$           ASSIGN:        producttype=3:NEXT(180$);


;
;
;     Model statements for module:  Assign 71
;
125$          ASSIGN:        receiptc2# c1=disc(0.848,0,0.864,1,0.875,2,0.913,3,0.946,4,0.973,5,0.989,6,0.995,8,1,10,70)
                             :NEXT(129$);


;
;
;     Model statements for module:  Decide 103
;
129$          BRANCH,        1:
                             If,receiptc2# c1==0,95$,Yes:
                             If,receiptc2# c1==1,130$,Yes:
                             Else,131$,Yes;

;
;
;     Model statements for module:  Separate 8
;
131$          DUPLICATE,     100 - 50:
                             receiptc2# c1-1,870$,50:NEXT(869$);

869$          ASSIGN:        Separate 8.NumberOut Orig=Separate 8.NumberOut Orig + 1:NEXT(130$);

870$          ASSIGN:        Separate 8.NumberOut Dup=Separate 8.NumberOut Dup + 1:NEXT(130$);


;
;
;     Model statements for module:  Process 13
;
130$          ASSIGN:        Process 13.NumberIn=Process 13.NumberIn + 1:
                             Process 13.WIP=Process 13.WIP+1;
900$          STACK,         1:Save:NEXT(874$);

874$          QUEUE,         Process 13.Queue;
873$          SEIZE,         2,VA:
                             Resource 7,1:NEXT(872$);

872$          DELAY:         HoursToBaseTime(expo(14/receiptc2# c1,6)),,VA:NEXT(915$);

915$          ASSIGN:        Process 13.WaitTime=Process 13.WaitTime + Diff.WaitTime;
879$          TALLY:         Process 13.WaitTimePerEntity,Diff.WaitTime,1;
881$          TALLY:         Process 13.TotalTimePerEntity,Diff.StartTime,1;
905$          ASSIGN:        Process 13.VATime=Process 13.VATime + Diff.VATime;
906$          TALLY:         Process 13.VATimePerEntity,Diff.VATime,1;
871$          RELEASE:       Resource 7,1;
920$          STACK,         1:Destroy:NEXT(919$);

919$          ASSIGN:        Process 13.NumberOut=Process 13.NumberOut + 1:
                             Process 13.WIP=Process 13.WIP-1:NEXT(88$);


;
;
;     Model statements for module:  Create 6
;

922$          CREATE,        1,MinutesToBaseTime(0.0001),Entity sb1ship# c1:MinutesToBaseTime(1440):NEXT(923$);

923$          ASSIGN:        Create for shipment b shift1 c1.NumberOut=Create for shipment b shift1 c1.NumberOut + 1:NEXT(132$);


;
;
;     Model statements for module:  Decide 104
;
132$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),926$,Yes:
                             Else,927$,Yes;
926$          ASSIGN:        Decide 104.NumberOut True=Decide 104.NumberOut True + 1:NEXT(133$);

927$          ASSIGN:        Decide 104.NumberOut False=Decide 104.NumberOut False + 1:NEXT(134$);


;
;
;     Model statements for module:  Assign 72
;
133$          ASSIGN:        departureb1# c1=disc(0.674,0,0.717,1,0.783,2,0.810,3,0.918,4,0.973,5,1,6,97):NEXT(135$);


;
;
;     Model statements for module:  Decide 105
;
135$          BRANCH,        1:
                             If,departureb1# c1==0,108$,Yes:
                             If,departureb1# c1==1,136$,Yes:
                             Else,137$,Yes;

;
;
;     Model statements for module:  Separate 9
;
137$          DUPLICATE,     100 - 50:
                             departureb1# c1-1,932$,50:NEXT(931$);

931$          ASSIGN:        Separate 9.NumberOut Orig=Separate 9.NumberOut Orig + 1:NEXT(136$);

932$          ASSIGN:        Separate 9.NumberOut Dup=Separate 9.NumberOut Dup + 1:NEXT(136$);


;
;
;     Model statements for module:  Process 14
;
136$          ASSIGN:        Process 14.NumberIn=Process 14.NumberIn + 1:
                             Process 14.WIP=Process 14.WIP+1;
962$          STACK,         1:Save:NEXT(936$);

936$          QUEUE,         Process 14.Queue;
935$          SEIZE,         2,VA:
                             Resource 8,1:NEXT(934$);

934$          DELAY:         HoursToBaseTime(expo(10/departureb1# c1,33)),,VA:NEXT(977$);

977$          ASSIGN:        Process 14.WaitTime=Process 14.WaitTime + Diff.WaitTime;
941$          TALLY:         Process 14.WaitTimePerEntity,Diff.WaitTime,1;
943$          TALLY:         Process 14.TotalTimePerEntity,Diff.StartTime,1;
967$          ASSIGN:        Process 14.VATime=Process 14.VATime + Diff.VATime;
968$          TALLY:         Process 14.VATimePerEntity,Diff.VATime,1;
933$          RELEASE:       Resource 8,1;
982$          STACK,         1:Destroy:NEXT(981$);

981$          ASSIGN:        Process 14.NumberOut=Process 14.NumberOut + 1:
                             Process 14.WIP=Process 14.WIP-1:NEXT(90$);


;
;
;     Model statements for module:  Assign 60
;
90$           ASSIGN:        type=2:NEXT(158$);


;
;
;     Model statements for module:  Decide 115
;
158$          BRANCH,        1:
                             If,type==1,168$,Yes:
                             If,type==2,169$,Yes:
                             Else,170$,Yes;

;
;
;     Model statements for module:  Decide 120
;
170$          BRANCH,        1:
                             If,product3stock>=safety stock,986$,Yes:
                             Else,987$,Yes;
986$          ASSIGN:        Decide 120.NumberOut True=Decide 120.NumberOut True + 1:NEXT(221$);

987$          ASSIGN:        Decide 120.NumberOut False=Decide 120.NumberOut False + 1:NEXT(160$);

221$          COUNT:         dispatchctruck,1:NEXT(24$);


;
;
;     Model statements for module:  Assign 23
;
24$           ASSIGN:        ordersize=8:
                             shipmentqenter=tnow:NEXT(68$);

68$           ASSIGN:        product2stock=(type==2)*(product2stock-8)+(type<>2)*(product2stock-0):
                             product3stock=(type==3)*(product3stock-8)+(type<>3)*(product3stock-0):
                             product1stock=(type==1)*(product1stock-8)+(type<>1)*(product1stock-0);
166$          WRITE,         stock:
                             totalstock,
                             tnow;
172$          QUEUE,         shipmentdockqueue;
163$          SEIZE,         1,Other:
                             SELECT(S_docks,LRC,s_index),1:NEXT(164$);


;
;
;     Model statements for module:  Decide 117
;
164$          BRANCH,        1:
                             If,s_docks(s_index)==dock1,988$,Yes:
                             Else,989$,Yes;
988$          ASSIGN:        Decide 117.NumberOut True=Decide 117.NumberOut True + 1:NEXT(175$);

989$          ASSIGN:        Decide 117.NumberOut False=Decide 117.NumberOut False + 1:NEXT(298$);

175$          TALLY:         time in shipmentq at d1,tnow-shipmentqenter,1:NEXT(66$);


;
;
;     Model statements for module:  Assign 47
;
66$           ASSIGN:        dock_no=1:
                             leave the dock1 queue=tnow:NEXT(26$);

26$           DUPLICATE:     ordersize-1,25$:NEXT(25$);


;
;
;     Model statements for module:  Assign 24
;
25$           ASSIGN:        picked=0:
                             k=1:
                             totalstock=product1stock+product2stock+product3stock:
                             totalexceedingstock=stock1+stock2+stock3:NEXT(27$);

27$           WHILE:         (picked==0):NEXT(28$);


;
;
;     Model statements for module:  Decide 17
;
28$           BRANCH,        1:
                             If,( LocationA(k,1) <> 0  )  &&  ( type == LocationA(k,2) ),990$,Yes:
                             Else,991$,Yes;
990$          ASSIGN:        Decide 17.NumberOut True=Decide 17.NumberOut True + 1:NEXT(29$);

991$          ASSIGN:        Decide 17.NumberOut False=Decide 17.NumberOut False + 1:NEXT(33$);

29$           ASSIGN:        LocationA(k,1)=LocationA(k,1)-1:NEXT(30$);


;
;
;     Model statements for module:  Assign 27
;
30$           ASSIGN:        picked=1:
                             Locationtype=1:NEXT(31$);


;
;
;     Model statements for module:  Decide 18
;
31$           BRANCH,        1:
                             If,LocationA(k,1)==0,992$,Yes:
                             Else,993$,Yes;
992$          ASSIGN:        Decide 18.NumberOut True=Decide 18.NumberOut True + 1:NEXT(32$);

993$          ASSIGN:        Decide 18.NumberOut False=Decide 18.NumberOut False + 1:NEXT(63$);

32$           ASSIGN:        LocationA(k,2)=0:NEXT(63$);


;
;
;     Model statements for module:  Decide 57
;
63$           BRANCH,        1:
                             If,dock_no==1,994$,Yes:
                             Else,995$,Yes;
994$          ASSIGN:        Decide 57.NumberOut True=Decide 57.NumberOut True + 1:NEXT(64$);

995$          ASSIGN:        Decide 57.NumberOut False=Decide 57.NumberOut False + 1:NEXT(65$);


;
;
;     Model statements for module:  Assign 43
;
64$           ASSIGN:        width9=
                             (LocationA(k,1)==4)*0+(LocationA(k,1)==3)*1+(LocationA(k,1)==2)*2+(LocationA(k,1)==1)*3+(LocationA(k,1)==0)*4:
                             distance9=20+k*1+width9:NEXT(38$);

38$           ENDWHILE:NEXT(42$);


;
;
;     Model statements for module:  Decide 22
;
42$           BRANCH,        1:
                             If,dock_no==1,996$,Yes:
                             Else,997$,Yes;
996$          ASSIGN:        Decide 22.NumberOut True=Decide 22.NumberOut True + 1:NEXT(40$);

997$          ASSIGN:        Decide 22.NumberOut False=Decide 22.NumberOut False + 1:NEXT(50$);


;
;
;     Model statements for module:  Seize 9
;
40$           QUEUE,         Seizing a forklift from forklift set at shipment ramp1.Queue;
              SEIZE,         2,Other:
                             SELECT(TransSet3,CYC, trans_no3),1:NEXT(999$);

999$          DELAY:         0.0,,VA:NEXT(537$);


;
;
;     Model statements for module:  Decide 233
;
537$          BRANCH,        1:
                             If,departure from stock exceeded<>1,1000$,Yes:
                             Else,1001$,Yes;
1000$         ASSIGN:        Decide 233.NumberOut True=Decide 233.NumberOut True + 1:NEXT(43$);

1001$         ASSIGN:        Decide 233.NumberOut False=Decide 233.NumberOut False + 1:NEXT(538$);


;
;
;     Model statements for module:  Delay 5
;
43$           DELAY:         
                             SecondsToBaseTime((Locationtype==1)*((34.521+(0.915*distance9)+NORM(0,7.3))*2)+(Locationtype==2)*((34.521+(0.915*distance11)+NORM(0,7.3))*2)+(Locationtype==3)*((34.521+(0.915*distance13)+NORM(0,7.3))*2)+(Locationtype==4)*((34.521+(0.915*distance15)+NORM(0,7.3))*2)),,
                             Other:NEXT(93$);

93$           RELEASE:       Member(TransSet3, trans_no3),1;
494$          ASSIGN:        #product from d1=#product from d1+1:NEXT(189$);


;
;
;     Model statements for module:  Decide 123
;
189$          BRANCH,        1:
                             If,#product from d1==8,1002$,Yes:
                             Else,1003$,Yes;
1002$         ASSIGN:        Decide 123.NumberOut True=Decide 123.NumberOut True + 1:NEXT(225$);

1003$         ASSIGN:        Decide 123.NumberOut False=Decide 123.NumberOut False + 1:NEXT(502$);

225$          TALLY:         time for pickup to d1,tnow-leave the dock1 queue,1;
495$          ASSIGN:        #product from d1=#product from d1-#product from d1:NEXT(86$);


;
;
;     Model statements for module:  Process 5
;
86$           ASSIGN:        Loading from dock1.NumberIn=Loading from dock1.NumberIn + 1:
                             Loading from dock1.WIP=Loading from dock1.WIP+1;
1033$         STACK,         1:Save:NEXT(1007$);

1007$         QUEUE,         Loading from dock1.Queue;
1006$         SEIZE,         1,VA:
                             SELECT(TransSet4,SNB, ),1:NEXT(1005$);

1005$         DELAY:         SecondsToBaseTime(UNIF(62,83,63)),,VA:NEXT(1048$);

1048$         ASSIGN:        Loading from dock1.WaitTime=Loading from dock1.WaitTime + Diff.WaitTime;
1012$         TALLY:         Loading from dock1.WaitTimePerEntity,Diff.WaitTime,1;
1014$         TALLY:         Loading from dock1.TotalTimePerEntity,Diff.StartTime,1;
1038$         ASSIGN:        Loading from dock1.VATime=Loading from dock1.VATime + Diff.VATime;
1039$         TALLY:         Loading from dock1.VATimePerEntity,Diff.VATime,1;
1004$         RELEASE:       SELECT(TransSet4,LAST),1;
1053$         STACK,         1:Destroy:NEXT(1052$);

1052$         ASSIGN:        Loading from dock1.NumberOut=Loading from dock1.NumberOut + 1:
                             Loading from dock1.WIP=Loading from dock1.WIP-1:NEXT(215$);

215$          ASSIGN:        #loaded1=#loaded1+1:NEXT(46$);


;
;
;     Model statements for module:  Decide 38
;
46$           BRANCH,        1:
                             If,#loaded1==ordersize,1055$,Yes:
                             Else,1056$,Yes;
1055$         ASSIGN:        Decide 38.NumberOut True=Decide 38.NumberOut True + 1:NEXT(44$);

1056$         ASSIGN:        Decide 38.NumberOut False=Decide 38.NumberOut False + 1:NEXT(45$);


;
;
;     Model statements for module:  Release 13
;
44$           RELEASE:       dock1,1:NEXT(216$);

216$          ASSIGN:        #loaded1=#loaded1-#loaded1;
227$          TALLY:         time in system from d1 for shipment,tnow-shipmentqenter,1;
293$          COUNT:         # of trucks that are in system  more than 60 minutes from d1,(tnow-shipmentqenter)>60;
489$          COUNT:         # of trucks that are in system  more than 45 minutes from d1,(tnow-shipmentqenter)>45;
294$          COUNT:         #of trucks that are from d1,1;
492$          TALLY:         time for loading at d1,tnow-starting time of loading at d1,1:NEXT(45$);


;
;
;     Model statements for module:  Dispose 13
;
45$           ASSIGN:        Dispose 13.NumberOut=Dispose 13.NumberOut + 1;
1057$         DISPOSE:       Yes;

502$          ASSIGN:        #product being loaded from d1=#product being loaded from d1+1:NEXT(504$);


;
;
;     Model statements for module:  Decide 219
;
504$          BRANCH,        1:
                             If,#product being loaded from d1==1,1058$,Yes:
                             Else,1059$,Yes;
1058$         ASSIGN:        Decide 219.NumberOut True=Decide 219.NumberOut True + 1:NEXT(503$);

1059$         ASSIGN:        Decide 219.NumberOut False=Decide 219.NumberOut False + 1:NEXT(505$);


;
;
;     Model statements for module:  Assign 177
;
503$          ASSIGN:        starting time of loading at d1=tnow:NEXT(86$);


;
;
;     Model statements for module:  Decide 220
;
505$          BRANCH,        1:
                             If,#product being loaded from d1==7,1060$,Yes:
                             Else,1061$,Yes;
1060$         ASSIGN:        Decide 220.NumberOut True=Decide 220.NumberOut True + 1:NEXT(506$);

1061$         ASSIGN:        Decide 220.NumberOut False=Decide 220.NumberOut False + 1:NEXT(86$);

506$          ASSIGN:        #product being loaded from d1=#product being loaded from d1-#product being loaded from d1:NEXT(86$);


;
;
;     Model statements for module:  Delay 17
;
538$          DELAY:         SecondsToBaseTime(((34.521+(0.915*averagedistance)+Norm(0,7.3))*2)),,Other:NEXT(93$);


;
;
;     Model statements for module:  Seize 12
;
50$           QUEUE,         Seizing a forklift from forklift set at shipment ramp2.Queue;
              SEIZE,         2,Other:
                             SELECT(TransSet6,CYC, trans_no6),1:NEXT(1063$);

1063$         DELAY:         0.0,,VA:NEXT(539$);


;
;
;     Model statements for module:  Decide 234
;
539$          BRANCH,        1:
                             If,departure from stock exceeded<>1,1064$,Yes:
                             Else,1065$,Yes;
1064$         ASSIGN:        Decide 234.NumberOut True=Decide 234.NumberOut True + 1:NEXT(52$);

1065$         ASSIGN:        Decide 234.NumberOut False=Decide 234.NumberOut False + 1:NEXT(540$);


;
;
;     Model statements for module:  Delay 8
;
52$           DELAY:         
                             SecondsToBaseTime((Locationtype==1)*((34.521+(0.915*distance10)+NORM(0,7.3))*2)+(Locationtype==2)*((34.521+(0.915*distance12)+NORM(0,7.3))*2)+(Locationtype==3)*((34.521+(0.915*distance14)+NORM(0,7.3))*2)+(Locationtype==4)*((34.521+(0.915*distance16)+NORM(0,7.3))*2)),,
                             Other:NEXT(53$);

53$           RELEASE:       Member(TransSet6, Trans_No6),1;
496$          ASSIGN:        #product from d2=#product from d2+1:NEXT(188$);


;
;
;     Model statements for module:  Decide 122
;
188$          BRANCH,        1:
                             If,#product from d2==8,1066$,Yes:
                             Else,1067$,Yes;
1066$         ASSIGN:        Decide 122.NumberOut True=Decide 122.NumberOut True + 1:NEXT(226$);

1067$         ASSIGN:        Decide 122.NumberOut False=Decide 122.NumberOut False + 1:NEXT(498$);

226$          TALLY:         time for pickup to d2,tnow-leave the dock2 queue,1;
497$          ASSIGN:        #product from d2=#product from d2-#product from d2:NEXT(77$);


;
;
;     Model statements for module:  Process 4
;
77$           ASSIGN:        Loading from dock2.NumberIn=Loading from dock2.NumberIn + 1:
                             Loading from dock2.WIP=Loading from dock2.WIP+1;
1097$         STACK,         1:Save:NEXT(1071$);

1071$         QUEUE,         Loading from dock2.Queue;
1070$         SEIZE,         1,VA:
                             SELECT(TransSet5,SNB, ),1:NEXT(1069$);

1069$         DELAY:         SecondsToBaseTime(UNIF(62,83,64)),,VA:NEXT(1112$);

1112$         ASSIGN:        Loading from dock2.WaitTime=Loading from dock2.WaitTime + Diff.WaitTime;
1076$         TALLY:         Loading from dock2.WaitTimePerEntity,Diff.WaitTime,1;
1078$         TALLY:         Loading from dock2.TotalTimePerEntity,Diff.StartTime,1;
1102$         ASSIGN:        Loading from dock2.VATime=Loading from dock2.VATime + Diff.VATime;
1103$         TALLY:         Loading from dock2.VATimePerEntity,Diff.VATime,1;
1068$         RELEASE:       SELECT(TransSet5,LAST),1;
1117$         STACK,         1:Destroy:NEXT(1116$);

1116$         ASSIGN:        Loading from dock2.NumberOut=Loading from dock2.NumberOut + 1:
                             Loading from dock2.WIP=Loading from dock2.WIP-1:NEXT(217$);

217$          ASSIGN:        #loaded2=#loaded2+1:NEXT(47$);


;
;
;     Model statements for module:  Decide 39
;
47$           BRANCH,        1:
                             If,#loaded2==ordersize,1119$,Yes:
                             Else,1120$,Yes;
1119$         ASSIGN:        Decide 39.NumberOut True=Decide 39.NumberOut True + 1:NEXT(48$);

1120$         ASSIGN:        Decide 39.NumberOut False=Decide 39.NumberOut False + 1:NEXT(49$);


;
;
;     Model statements for module:  Release 14
;
48$           RELEASE:       dock2,1:NEXT(218$);

218$          ASSIGN:        #loaded2=#loaded2-#loaded2;
228$          TALLY:         time in system from d2 for shipment,tnow-shipmentqenter,1;
295$          COUNT:         # of trucks that are in system  more than 60 minutes from d2,(tnow-shipmentqenter)>60;
490$          COUNT:         # of trucks that are in system  more than 45 minutes from d2,(tnow-shipmentqenter)>45;
296$          COUNT:         #of trucks that are from d2,1;
493$          TALLY:         time for loading at d2,tnow-starting time of loading at d2,1:NEXT(49$);


;
;
;     Model statements for module:  Dispose 14
;
49$           ASSIGN:        Dispose 14.NumberOut=Dispose 14.NumberOut + 1;
1121$         DISPOSE:       Yes;

498$          ASSIGN:        #product being loaded from d2=#product being loaded from d2+1:NEXT(499$);


;
;
;     Model statements for module:  Decide 217
;
499$          BRANCH,        1:
                             If,#product being loaded from d2==1,1122$,Yes:
                             Else,1123$,Yes;
1122$         ASSIGN:        Decide 217.NumberOut True=Decide 217.NumberOut True + 1:NEXT(491$);

1123$         ASSIGN:        Decide 217.NumberOut False=Decide 217.NumberOut False + 1:NEXT(500$);


;
;
;     Model statements for module:  Assign 176
;
491$          ASSIGN:        starting time of loading at d2=tnow:NEXT(77$);


;
;
;     Model statements for module:  Decide 218
;
500$          BRANCH,        1:
                             If,#product being loaded from d2==7,1124$,Yes:
                             Else,1125$,Yes;
1124$         ASSIGN:        Decide 218.NumberOut True=Decide 218.NumberOut True + 1:NEXT(501$);

1125$         ASSIGN:        Decide 218.NumberOut False=Decide 218.NumberOut False + 1:NEXT(77$);

501$          ASSIGN:        #product being loaded from d2=#product being loaded from d2-#product being loaded from d2:NEXT(77$);


;
;
;     Model statements for module:  Delay 21
;
540$          DELAY:         SecondsToBaseTime(((34.521+(0.915*averagedistance)+Norm(0,7.3))*2)),,Other:NEXT(53$);


;
;
;     Model statements for module:  Assign 44
;
65$           ASSIGN:        width10=
                             (LocationA(k,1)==4)*0+(LocationA(k,1)==3)*1+(LocationA(k,1)==2)*2+(LocationA(k,1)==1)*3+(LocationA(k,1)==0)*4:
                             distance10=23+k*1+width10:NEXT(38$);


;
;
;     Model statements for module:  Decide 19
;
33$           BRANCH,        1:
                             If,( LocationB(k,1) <> 0 )  &&  ( type == LocationB(k,2) ),1126$,Yes:
                             Else,1127$,Yes;
1126$         ASSIGN:        Decide 19.NumberOut True=Decide 19.NumberOut True + 1:NEXT(34$);

1127$         ASSIGN:        Decide 19.NumberOut False=Decide 19.NumberOut False + 1:NEXT(78$);

34$           ASSIGN:        LocationB(k,1)=LocationB(k,1)-1:NEXT(35$);


;
;
;     Model statements for module:  Assign 30
;
35$           ASSIGN:        picked=1:
                             Locationtype=2:NEXT(36$);


;
;
;     Model statements for module:  Decide 21
;
36$           BRANCH,        1:
                             If,LocationB(k,1)==0,1128$,Yes:
                             Else,1129$,Yes;
1128$         ASSIGN:        Decide 21.NumberOut True=Decide 21.NumberOut True + 1:NEXT(37$);

1129$         ASSIGN:        Decide 21.NumberOut False=Decide 21.NumberOut False + 1:NEXT(515$);

37$           ASSIGN:        LocationB(k,2)=0:NEXT(515$);


;
;
;     Model statements for module:  Decide 225
;
515$          BRANCH,        1:
                             If,dock_no==1,1130$,Yes:
                             Else,1131$,Yes;
1130$         ASSIGN:        Decide 225.NumberOut True=Decide 225.NumberOut True + 1:NEXT(516$);

1131$         ASSIGN:        Decide 225.NumberOut False=Decide 225.NumberOut False + 1:NEXT(517$);


;
;
;     Model statements for module:  Assign 191
;
516$          ASSIGN:        width11=
                             (LocationB(k,1)==4)*0+(LocationB(k,1)==3)*1+(LocationB(k,1)==2)*2+(LocationB(k,1)==1)*3+(LocationB(k,1)==0)*4:
                             distance11=20+k*1+width11:NEXT(38$);


;
;
;     Model statements for module:  Assign 192
;
517$          ASSIGN:        width12=
                             (LocationB(k,1)==4)*0+(LocationB(k,1)==3)*1+(LocationB(k,1)==2)*2+(LocationB(k,1)==1)*3+(LocationB(k,1)==0)*4:
                             distance12=23+k*1+width12:NEXT(38$);


;
;
;     Model statements for module:  Decide 82
;
78$           BRANCH,        1:
                             If,( LocationC(k,1) <> 0 )  &&  ( type == LocationC(k,2) ),1132$,Yes:
                             Else,1133$,Yes;
1132$         ASSIGN:        Decide 82.NumberOut True=Decide 82.NumberOut True + 1:NEXT(79$);

1133$         ASSIGN:        Decide 82.NumberOut False=Decide 82.NumberOut False + 1:NEXT(153$);

79$           ASSIGN:        LocationC(k,1)=LocationC(k,1)-1:NEXT(80$);


;
;
;     Model statements for module:  Assign 53
;
80$           ASSIGN:        picked=1:
                             Locationtype=3:NEXT(81$);


;
;
;     Model statements for module:  Decide 83
;
81$           BRANCH,        1:
                             If,LocationC(k,1)==0,1134$,Yes:
                             Else,1135$,Yes;
1134$         ASSIGN:        Decide 83.NumberOut True=Decide 83.NumberOut True + 1:NEXT(82$);

1135$         ASSIGN:        Decide 83.NumberOut False=Decide 83.NumberOut False + 1:NEXT(83$);

82$           ASSIGN:        LocationC(k,2)=0:NEXT(83$);


;
;
;     Model statements for module:  Decide 84
;
83$           BRANCH,        1:
                             If,dock_no==1,1136$,Yes:
                             Else,1137$,Yes;
1136$         ASSIGN:        Decide 84.NumberOut True=Decide 84.NumberOut True + 1:NEXT(84$);

1137$         ASSIGN:        Decide 84.NumberOut False=Decide 84.NumberOut False + 1:NEXT(85$);


;
;
;     Model statements for module:  Assign 55
;
84$           ASSIGN:        width13=
                             (LocationC(k,1)==7)*0+(LocationC(k,1)==6)*1+(LocationC(k,1)==5)*2+(LocationC(k,1)==4)*3+(LocationC(k,1)==3)*4+(LocationC(k,1)==2)*5+(LocationC(k,1)==1)*6+(LocationC(k,1)==0)*7:
                             distance13=13+k*1+width13:NEXT(38$);


;
;
;     Model statements for module:  Assign 56
;
85$           ASSIGN:        width14=
                             (LocationC(k,1)==7)*0+(LocationC(k,1)==6)*1+(LocationC(k,1)==5)*2+(LocationC(k,1)==4)*3+(LocationC(k,1)==3)*4+(LocationC(k,1)==2)*5+(LocationC(k,1)==1)*6+(LocationC(k,1)==0)*7:
                             distance14=14+k*1+width14:NEXT(38$);


;
;
;     Model statements for module:  Decide 111
;
153$          BRANCH,        1:
                             If,( LocationD(k,1) <> 0 )  &&  ( type == LocationD(k,2) ),1138$,Yes:
                             Else,1139$,Yes;
1138$         ASSIGN:        Decide 111.NumberOut True=Decide 111.NumberOut True + 1:NEXT(154$);

1139$         ASSIGN:        Decide 111.NumberOut False=Decide 111.NumberOut False + 1:NEXT(39$);

154$          ASSIGN:        LocationD(k,1)=LocationD(k,1)-1:NEXT(155$);


;
;
;     Model statements for module:  Assign 77
;
155$          ASSIGN:        picked=1:
                             Locationtype=4:NEXT(156$);


;
;
;     Model statements for module:  Decide 112
;
156$          BRANCH,        1:
                             If,LocationD(k,1)==0,1140$,Yes:
                             Else,1141$,Yes;
1140$         ASSIGN:        Decide 112.NumberOut True=Decide 112.NumberOut True + 1:NEXT(157$);

1141$         ASSIGN:        Decide 112.NumberOut False=Decide 112.NumberOut False + 1:NEXT(518$);

157$          ASSIGN:        LocationD(k,2)=0:NEXT(518$);


;
;
;     Model statements for module:  Decide 226
;
518$          BRANCH,        1:
                             If,dock_no==1,1142$,Yes:
                             Else,1143$,Yes;
1142$         ASSIGN:        Decide 226.NumberOut True=Decide 226.NumberOut True + 1:NEXT(519$);

1143$         ASSIGN:        Decide 226.NumberOut False=Decide 226.NumberOut False + 1:NEXT(520$);


;
;
;     Model statements for module:  Assign 193
;
519$          ASSIGN:        width15=
                             (LocationD(k,1)==7)*0+(LocationD(k,1)==6)*1+(LocationD(k,1)==5)*2+(LocationD(k,1)==4)*3+(LocationD(k,1)==3)*4+(LocationD(k,1)==2)*5+(LocationD(k,1)==1)*6+(LocationD(k,1)==0)*7:
                             distance15=13+k*1+width15:NEXT(38$);


;
;
;     Model statements for module:  Assign 194
;
520$          ASSIGN:        width16=
                             (LocationC(k,1)==7)*0+(LocationC(k,1)==6)*1+(LocationC(k,1)==5)*2+(LocationC(k,1)==4)*3+(LocationC(k,1)==3)*4+(LocationC(k,1)==2)*5+(LocationC(k,1)==1)*6+(LocationC(k,1)==0)*7:
                             distance16=14+k*1+width16:NEXT(38$);


;
;
;     Model statements for module:  Assign 32
;
39$           ASSIGN:        k=k+1:NEXT(531$);


;
;
;     Model statements for module:  Decide 231
;
531$          BRANCH,        1:
                             If,k<=231,1144$,Yes:
                             Else,1145$,Yes;
1144$         ASSIGN:        Decide 231.NumberOut True=Decide 231.NumberOut True + 1:NEXT(38$);

1145$         ASSIGN:        Decide 231.NumberOut False=Decide 231.NumberOut False + 1:NEXT(536$);


;
;
;     Model statements for module:  Assign 197
;
536$          ASSIGN:        departure from stock exceeded=1:NEXT(532$);


;
;
;     Model statements for module:  Decide 232
;
532$          BRANCH,        1:
                             If,type==1,533$,Yes:
                             If,type==2,534$,Yes:
                             Else,535$,Yes;
535$          ASSIGN:        stock3=stock3-1:NEXT(42$);

533$          ASSIGN:        stock1=stock1-1:NEXT(42$);

534$          ASSIGN:        stock2=stock2-1:NEXT(42$);

298$          TALLY:         time in shipmentq at d2,tnow-shipmentqenter,1:NEXT(67$);


;
;
;     Model statements for module:  Assign 48
;
67$           ASSIGN:        dock_no=2:
                             leave the dock2 queue=tnow:NEXT(26$);


;
;
;     Model statements for module:  Record 32
;
160$          COUNT:         #runaway,1:NEXT(159$);


;
;
;     Model statements for module:  Dispose 21
;
159$          ASSIGN:        Dispose 21.NumberOut=Dispose 21.NumberOut + 1;
1148$         DISPOSE:       Yes;


;
;
;     Model statements for module:  Decide 118
;
168$          BRANCH,        1:
                             If,product1stock>=safety stock,1149$,Yes:
                             Else,1150$,Yes;
1149$         ASSIGN:        Decide 118.NumberOut True=Decide 118.NumberOut True + 1:NEXT(219$);

1150$         ASSIGN:        Decide 118.NumberOut False=Decide 118.NumberOut False + 1:NEXT(160$);

219$          COUNT:         dispatchatruck,1:NEXT(24$);


;
;
;     Model statements for module:  Decide 119
;
169$          BRANCH,        1:
                             If,product2stock>=safety stock,1151$,Yes:
                             Else,1152$,Yes;
1151$         ASSIGN:        Decide 119.NumberOut True=Decide 119.NumberOut True + 1:NEXT(220$);

1152$         ASSIGN:        Decide 119.NumberOut False=Decide 119.NumberOut False + 1:NEXT(160$);

220$          COUNT:         dispatchbtruck,1:NEXT(24$);


;
;
;     Model statements for module:  Dispose 20
;
108$          ASSIGN:        Dispose 20.NumberOut=Dispose 20.NumberOut + 1;
1153$         DISPOSE:       Yes;


;
;
;     Model statements for module:  Assign 73
;
134$          ASSIGN:        departureb2# c1=disc(0.663,0,0.707,1,0.761,2,0.853,3,0.891,4,0.946,5,0.973,6,0.995,7,1,9,98)
                             :NEXT(138$);


;
;
;     Model statements for module:  Decide 106
;
138$          BRANCH,        1:
                             If,departureb2# c1==0,108$,Yes:
                             If,departureb2# c1==1,139$,Yes:
                             Else,140$,Yes;

;
;
;     Model statements for module:  Separate 10
;
140$          DUPLICATE,     100 - 50:
                             departureb2# c1-1,1158$,50:NEXT(1157$);

1157$         ASSIGN:        Separate 10.NumberOut Orig=Separate 10.NumberOut Orig + 1:NEXT(139$);

1158$         ASSIGN:        Separate 10.NumberOut Dup=Separate 10.NumberOut Dup + 1:NEXT(139$);


;
;
;     Model statements for module:  Process 15
;
139$          ASSIGN:        Process 15.NumberIn=Process 15.NumberIn + 1:
                             Process 15.WIP=Process 15.WIP+1;
1188$         STACK,         1:Save:NEXT(1162$);

1162$         QUEUE,         Process 15.Queue;
1161$         SEIZE,         2,VA:
                             Resource 9,1:NEXT(1160$);

1160$         DELAY:         HoursToBaseTime(expo(14/departureb2# c1,34)),,VA:NEXT(1203$);

1203$         ASSIGN:        Process 15.WaitTime=Process 15.WaitTime + Diff.WaitTime;
1167$         TALLY:         Process 15.WaitTimePerEntity,Diff.WaitTime,1;
1169$         TALLY:         Process 15.TotalTimePerEntity,Diff.StartTime,1;
1193$         ASSIGN:        Process 15.VATime=Process 15.VATime + Diff.VATime;
1194$         TALLY:         Process 15.VATimePerEntity,Diff.VATime,1;
1159$         RELEASE:       Resource 9,1;
1208$         STACK,         1:Destroy:NEXT(1207$);

1207$         ASSIGN:        Process 15.NumberOut=Process 15.NumberOut + 1:
                             Process 15.WIP=Process 15.WIP-1:NEXT(90$);


;
;
;     Model statements for module:  Create 7
;

1210$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sc1ship# c1:MinutesToBaseTime(1440):NEXT(1211$);

1211$         ASSIGN:        Create for shipment c shift1 c1.NumberOut=Create for shipment c shift1 c1.NumberOut + 1:NEXT(141$);


;
;
;     Model statements for module:  Decide 107
;
141$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),1214$,Yes:
                             Else,1215$,Yes;
1214$         ASSIGN:        Decide 107.NumberOut True=Decide 107.NumberOut True + 1:NEXT(142$);

1215$         ASSIGN:        Decide 107.NumberOut False=Decide 107.NumberOut False + 1:NEXT(143$);


;
;
;     Model statements for module:  Assign 74
;
142$          ASSIGN:        departurec1# c1=disc(0.842,0,0.891,1,0.924,2,0.935,3,0.962,4,0.978,5,0.995,6,1,7,99):NEXT(144$);


;
;
;     Model statements for module:  Decide 108
;
144$          BRANCH,        1:
                             If,departurec1# c1==0,108$,Yes:
                             If,departurec1# c1==1,145$,Yes:
                             Else,146$,Yes;

;
;
;     Model statements for module:  Separate 11
;
146$          DUPLICATE,     100 - 50:
                             departurec1# c1-1,1220$,50:NEXT(1219$);

1219$         ASSIGN:        Separate 11.NumberOut Orig=Separate 11.NumberOut Orig + 1:NEXT(145$);

1220$         ASSIGN:        Separate 11.NumberOut Dup=Separate 11.NumberOut Dup + 1:NEXT(145$);


;
;
;     Model statements for module:  Process 16
;
145$          ASSIGN:        Process 16.NumberIn=Process 16.NumberIn + 1:
                             Process 16.WIP=Process 16.WIP+1;
1250$         STACK,         1:Save:NEXT(1224$);

1224$         QUEUE,         Process 16.Queue;
1223$         SEIZE,         2,VA:
                             Resource 10,1:NEXT(1222$);

1222$         DELAY:         HoursToBaseTime(expo(10/departurec1# c1,35)),,VA:NEXT(1265$);

1265$         ASSIGN:        Process 16.WaitTime=Process 16.WaitTime + Diff.WaitTime;
1229$         TALLY:         Process 16.WaitTimePerEntity,Diff.WaitTime,1;
1231$         TALLY:         Process 16.TotalTimePerEntity,Diff.StartTime,1;
1255$         ASSIGN:        Process 16.VATime=Process 16.VATime + Diff.VATime;
1256$         TALLY:         Process 16.VATimePerEntity,Diff.VATime,1;
1221$         RELEASE:       Resource 10,1;
1270$         STACK,         1:Destroy:NEXT(1269$);

1269$         ASSIGN:        Process 16.NumberOut=Process 16.NumberOut + 1:
                             Process 16.WIP=Process 16.WIP-1:NEXT(91$);


;
;
;     Model statements for module:  Assign 61
;
91$           ASSIGN:        type=3:NEXT(158$);


;
;
;     Model statements for module:  Assign 75
;
143$          ASSIGN:        departurec2# c1=disc(0.723,0,0.804,1,0.870,2,0.908,3,0.940,4,0.989,5,1,6,100):NEXT(147$);


;
;
;     Model statements for module:  Decide 109
;
147$          BRANCH,        1:
                             If,departurec2# c1==0,108$,Yes:
                             If,departurec2# c1==1,148$,Yes:
                             Else,149$,Yes;

;
;
;     Model statements for module:  Separate 12
;
149$          DUPLICATE,     100 - 50:
                             departurec2# c1-1,1276$,50:NEXT(1275$);

1275$         ASSIGN:        Separate 12.NumberOut Orig=Separate 12.NumberOut Orig + 1:NEXT(148$);

1276$         ASSIGN:        Separate 12.NumberOut Dup=Separate 12.NumberOut Dup + 1:NEXT(148$);


;
;
;     Model statements for module:  Process 17
;
148$          ASSIGN:        Process 17.NumberIn=Process 17.NumberIn + 1:
                             Process 17.WIP=Process 17.WIP+1;
1306$         STACK,         1:Save:NEXT(1280$);

1280$         QUEUE,         Process 17.Queue;
1279$         SEIZE,         2,VA:
                             Resource 11,1:NEXT(1278$);

1278$         DELAY:         HoursToBaseTime(expo(14/departurec2# c1,36)),,VA:NEXT(1321$);

1321$         ASSIGN:        Process 17.WaitTime=Process 17.WaitTime + Diff.WaitTime;
1285$         TALLY:         Process 17.WaitTimePerEntity,Diff.WaitTime,1;
1287$         TALLY:         Process 17.TotalTimePerEntity,Diff.StartTime,1;
1311$         ASSIGN:        Process 17.VATime=Process 17.VATime + Diff.VATime;
1312$         TALLY:         Process 17.VATimePerEntity,Diff.VATime,1;
1277$         RELEASE:       Resource 11,1;
1326$         STACK,         1:Destroy:NEXT(1325$);

1325$         ASSIGN:        Process 17.NumberOut=Process 17.NumberOut + 1:
                             Process 17.WIP=Process 17.WIP-1:NEXT(91$);


;
;
;     Model statements for module:  Create 9
;

1328$         CREATE,        1,HoursToBaseTime(0.0),Entity 1:HoursToBaseTime(24):NEXT(1329$);

1329$         ASSIGN:        Create 9.NumberOut=Create 9.NumberOut + 1:NEXT(98$);


;
;
;     Model statements for module:  Assign 64
;
98$           ASSIGN:        day=day+1:NEXT(99$);


;
;
;     Model statements for module:  Dispose 17
;
99$           ASSIGN:        Dispose 17.NumberOut=Dispose 17.NumberOut + 1;
1332$         DISPOSE:       Yes;


;
;
;     Model statements for module:  Create 11
;

1333$         CREATE,        1,MinutesToBaseTime(600.0001),Entity ra2rec# c1:MinutesToBaseTime(1440):NEXT(1334$);

1334$         ASSIGN:        Create for receiving a shift2 c1.NumberOut=Create for receiving a shift2 c1.NumberOut + 1
                             :NEXT(100$);


;
;
;     Model statements for module:  Decide 93
;
100$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),1337$,Yes:
                             Else,1338$,Yes;
1337$         ASSIGN:        Decide 93.NumberOut True=Decide 93.NumberOut True + 1:NEXT(92$);

1338$         ASSIGN:        Decide 93.NumberOut False=Decide 93.NumberOut False + 1:NEXT(101$);


;
;
;     Model statements for module:  Assign 62
;
92$           ASSIGN:        receipta1# c1=
                             disc(0.772,0,0.777,2,0.788,4,0.810,5,0.821,6,0.832,7,0.870,8,0.886,9,0.891,10,0.908,11,0.924,12,0.935,13,0.946,14,0.951,16,0.962,17,0.973,18,0.978,22,0.984,23,0.995,27,1,32,65)
                             :NEXT(94$);


;
;
;     Model statements for module:  Decide 92
;
94$           BRANCH,        1:
                             If,receipta1# c1==0,95$,Yes:
                             If,receipta1# c1==1,96$,Yes:
                             Else,97$,Yes;

;
;
;     Model statements for module:  Separate 1
;
97$           DUPLICATE,     100 - 50:
                             receipta1# c1-1,1343$,50:NEXT(1342$);

1342$         ASSIGN:        Separate 1.NumberOut Orig=Separate 1.NumberOut Orig + 1:NEXT(96$);

1343$         ASSIGN:        Separate 1.NumberOut Dup=Separate 1.NumberOut Dup + 1:NEXT(96$);


;
;
;     Model statements for module:  Process 6
;
96$           ASSIGN:        Process 6.NumberIn=Process 6.NumberIn + 1:
                             Process 6.WIP=Process 6.WIP+1;
1373$         STACK,         1:Save:NEXT(1347$);

1347$         QUEUE,         Process 6.Queue;
1346$         SEIZE,         2,VA:
                             Resource 1,1:NEXT(1345$);

1345$         DELAY:         HoursToBaseTime(expo(10/receipta1# c1,1)),,VA:NEXT(1388$);

1388$         ASSIGN:        Process 6.WaitTime=Process 6.WaitTime + Diff.WaitTime;
1352$         TALLY:         Process 6.WaitTimePerEntity,Diff.WaitTime,1;
1354$         TALLY:         Process 6.TotalTimePerEntity,Diff.StartTime,1;
1378$         ASSIGN:        Process 6.VATime=Process 6.VATime + Diff.VATime;
1379$         TALLY:         Process 6.VATimePerEntity,Diff.VATime,1;
1344$         RELEASE:       Resource 1,1;
1393$         STACK,         1:Destroy:NEXT(1392$);

1392$         ASSIGN:        Process 6.NumberOut=Process 6.NumberOut + 1:
                             Process 6.WIP=Process 6.WIP-1:NEXT(0$);


;
;
;     Model statements for module:  Assign 1
;
0$            ASSIGN:        producttype=1:NEXT(180$);


;
;
;     Model statements for module:  Assign 65
;
101$          ASSIGN:        receipta2# c2=
                             disc(0.810,0,0.821,1,0.832,2,0.848,4,0.853,5,0.864,6,0.880,7,0.886,8,0.891,9,0.902,10,0.913,11,0.918,12,0.924,13,0.929,14,0.940,15,0.946,16,0.962,18,0.973,20,0.978,23,0.984,26,0.989,28,0.995,29,1,36,66)
                             :NEXT(102$);


;
;
;     Model statements for module:  Decide 94
;
102$          BRANCH,        1:
                             If,receipta2# c1==0,95$,Yes:
                             If,receipta2# c1==1,113$,Yes:
                             Else,103$,Yes;

;
;
;     Model statements for module:  Separate 2
;
103$          DUPLICATE,     100 - 50:
                             receipta2# c1-1,1399$,50:NEXT(1398$);

1398$         ASSIGN:        Separate 2.NumberOut Orig=Separate 2.NumberOut Orig + 1:NEXT(113$);

1399$         ASSIGN:        Separate 2.NumberOut Dup=Separate 2.NumberOut Dup + 1:NEXT(113$);


;
;
;     Model statements for module:  Process 8
;
113$          ASSIGN:        Process 8.NumberIn=Process 8.NumberIn + 1:
                             Process 8.WIP=Process 8.WIP+1;
1429$         STACK,         1:Save:NEXT(1403$);

1403$         QUEUE,         Process 8.Queue;
1402$         SEIZE,         2,VA:
                             Resource 2,1:NEXT(1401$);

1401$         DELAY:         HoursToBaseTime(expo(14/receipta2# c1,2)),,VA:NEXT(1444$);

1444$         ASSIGN:        Process 8.WaitTime=Process 8.WaitTime + Diff.WaitTime;
1408$         TALLY:         Process 8.WaitTimePerEntity,Diff.WaitTime,1;
1410$         TALLY:         Process 8.TotalTimePerEntity,Diff.StartTime,1;
1434$         ASSIGN:        Process 8.VATime=Process 8.VATime + Diff.VATime;
1435$         TALLY:         Process 8.VATimePerEntity,Diff.VATime,1;
1400$         RELEASE:       Resource 2,1;
1449$         STACK,         1:Destroy:NEXT(1448$);

1448$         ASSIGN:        Process 8.NumberOut=Process 8.NumberOut + 1:
                             Process 8.WIP=Process 8.WIP-1:NEXT(0$);


;
;
;     Model statements for module:  Create 15
;

1451$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sa2ship# c1:MinutesToBaseTime(1440):NEXT(1452$);

1452$         ASSIGN:        Create for shipmenta shift2 c1.NumberOut=Create for shipmenta shift2 c1.NumberOut + 1:NEXT(105$);


;
;
;     Model statements for module:  Decide 95
;
105$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),1455$,Yes:
                             Else,1456$,Yes;
1455$         ASSIGN:        Decide 95.NumberOut True=Decide 95.NumberOut True + 1:NEXT(104$);

1456$         ASSIGN:        Decide 95.NumberOut False=Decide 95.NumberOut False + 1:NEXT(106$);


;
;
;     Model statements for module:  Assign 66
;
104$          ASSIGN:        departurea1# c1=disc(0.332,0,0.386,1,0.5,2,0.707,3,0.859,4,0.946,5,0.984,6,0.989,7,0.995,8,1,10,95)
                             :NEXT(107$);


;
;
;     Model statements for module:  Decide 96
;
107$          BRANCH,        1:
                             If,departurea1# c1==0,108$,Yes:
                             If,departurea1# c1==1,109$,Yes:
                             Else,110$,Yes;

;
;
;     Model statements for module:  Separate 3
;
110$          DUPLICATE,     100 - 50:
                             departurea1# c1-1,1461$,50:NEXT(1460$);

1460$         ASSIGN:        Separate 3.NumberOut Orig=Separate 3.NumberOut Orig + 1:NEXT(109$);

1461$         ASSIGN:        Separate 3.NumberOut Dup=Separate 3.NumberOut Dup + 1:NEXT(109$);


;
;
;     Model statements for module:  Process 7
;
109$          ASSIGN:        Process 7.NumberIn=Process 7.NumberIn + 1:
                             Process 7.WIP=Process 7.WIP+1;
1491$         STACK,         1:Save:NEXT(1465$);

1465$         QUEUE,         Process 7.Queue;
1464$         SEIZE,         2,VA:
                             Resource 3,1:NEXT(1463$);

1463$         DELAY:         HoursToBaseTime(expo(10/departurea1# c1,31)),,VA:NEXT(1506$);

1506$         ASSIGN:        Process 7.WaitTime=Process 7.WaitTime + Diff.WaitTime;
1470$         TALLY:         Process 7.WaitTimePerEntity,Diff.WaitTime,1;
1472$         TALLY:         Process 7.TotalTimePerEntity,Diff.StartTime,1;
1496$         ASSIGN:        Process 7.VATime=Process 7.VATime + Diff.VATime;
1497$         TALLY:         Process 7.VATimePerEntity,Diff.VATime,1;
1462$         RELEASE:       Resource 3,1;
1511$         STACK,         1:Destroy:NEXT(1510$);

1510$         ASSIGN:        Process 7.NumberOut=Process 7.NumberOut + 1:
                             Process 7.WIP=Process 7.WIP-1:NEXT(89$);


;
;
;     Model statements for module:  Assign 59
;
89$           ASSIGN:        type=1:NEXT(158$);


;
;
;     Model statements for module:  Assign 67
;
106$          ASSIGN:        departurea2# c1=disc(0.315,0,0.408,1,0.505,2,0.685,3,0.837,4,0.929,5,0.989,6,1,7,96):NEXT(111$);


;
;
;     Model statements for module:  Decide 97
;
111$          BRANCH,        1:
                             If,departurea2# c1==0,108$,Yes:
                             If,departurea2# c1==1,114$,Yes:
                             Else,112$,Yes;

;
;
;     Model statements for module:  Separate 4
;
112$          DUPLICATE,     100 - 50:
                             departurea2# c1-1,1517$,50:NEXT(1516$);

1516$         ASSIGN:        Separate 4.NumberOut Orig=Separate 4.NumberOut Orig + 1:NEXT(114$);

1517$         ASSIGN:        Separate 4.NumberOut Dup=Separate 4.NumberOut Dup + 1:NEXT(114$);


;
;
;     Model statements for module:  Process 9
;
114$          ASSIGN:        Process 9.NumberIn=Process 9.NumberIn + 1:
                             Process 9.WIP=Process 9.WIP+1;
1547$         STACK,         1:Save:NEXT(1521$);

1521$         QUEUE,         Process 9.Queue;
1520$         SEIZE,         2,VA:
                             Resource 4,1:NEXT(1519$);

1519$         DELAY:         HoursToBaseTime(expo(14/departurea2# c1,32)),,VA:NEXT(1562$);

1562$         ASSIGN:        Process 9.WaitTime=Process 9.WaitTime + Diff.WaitTime;
1526$         TALLY:         Process 9.WaitTimePerEntity,Diff.WaitTime,1;
1528$         TALLY:         Process 9.TotalTimePerEntity,Diff.StartTime,1;
1552$         ASSIGN:        Process 9.VATime=Process 9.VATime + Diff.VATime;
1553$         TALLY:         Process 9.VATimePerEntity,Diff.VATime,1;
1518$         RELEASE:       Resource 4,1;
1567$         STACK,         1:Destroy:NEXT(1566$);

1566$         ASSIGN:        Process 9.NumberOut=Process 9.NumberOut + 1:
                             Process 9.WIP=Process 9.WIP-1:NEXT(89$);


;
;
;     Model statements for module:  Create 16
;

1569$         CREATE,        1,MinutesToBaseTime(600.0001),Entity rb2rec# c1:MinutesToBaseTime(1440):NEXT(1570$);

1570$         ASSIGN:        Create for receiving b shift2 c1.NumberOut=Create for receiving b shift2 c1.NumberOut + 1
                             :NEXT(115$);


;
;
;     Model statements for module:  Create 17
;

1573$         CREATE,        1,MinutesToBaseTime(600.0001),Entity rc2rec# c1:MinutesToBaseTime(1440):NEXT(1574$);

1574$         ASSIGN:        Create for receiving c shift2 c1.NumberOut=Create for receiving c shift2 c1.NumberOut + 1
                             :NEXT(123$);


;
;
;     Model statements for module:  Create 19
;

1577$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sb2ship# c1:MinutesToBaseTime(1440):NEXT(1578$);

1578$         ASSIGN:        Create for shipment b shift2 c1.NumberOut=Create for shipment b shift2 c1.NumberOut + 1:NEXT(132$);


176$          CREATE,        1,TFIN:,1:NEXT(177$);

177$          WRITE,         rqueueoutput:
                             
                             tavg(time in receiptq at d1),tavg(time in receiptq at d2),davg(statistic 1),davg(statistic 2),davg(statistic 3),dmax(statistic 1), dmax(statistic 2),dmax(statistic 3),davg(statistic 4),davg(statistic 5),davg(statistic 6),dmax(statistic 4),dmax(statistic 5),dmax(statistic 6),davg(statistic 7),dmax(statistic 7),davg(statistic 8),dmax(statistic 8);
178$          DISPOSE:       No;


185$          CREATE,        1,TFIN:,1:NEXT(186$);

186$          WRITE,         rtimeinsystem:
                             
                             tavg(time in system from d1), tavg(time in system from d2),tavg(time for putaway from d1),tavg(time for putaway from d2);
187$          DISPOSE:       No;


190$          CREATE,        1,TFIN::NEXT(191$);

191$          WRITE,         utilizationf1:
                             FSTAND(forklift1,1),FSTAND(forklift1,2),FSTAND(forklift1,4);
192$          DISPOSE:       No;


193$          CREATE,        1,TFIN::NEXT(194$);

194$          WRITE,         utilizationf2:
                             FSTAND(forklift2,1),FSTAND(forklift2,2),FSTAND(forklift2,4);
195$          DISPOSE:       No;


196$          CREATE,        1,TFIN::NEXT(197$);

197$          WRITE,         utilizationf3:
                             FSTAND(forklift3,1),FSTAND(forklift3,2),FSTAND(forklift3,4);
198$          DISPOSE:       No;


199$          CREATE,        1,TFIN::NEXT(200$);

200$          WRITE,         utilizationf5:
                             FSTAND(forklift5,1),FSTAND(forklift5,2),FSTAND(forklift5,4);
201$          DISPOSE:       No;


202$          CREATE,        1,TFIN::NEXT(203$);

203$          WRITE,         utilizationf6:
                             FSTAND(forklift6,1),FSTAND(forklift6,2),FSTAND(forklift6,4);
204$          DISPOSE:       No;


205$          CREATE,        1,TFIN::NEXT(206$);

206$          WRITE,         utilizationd1:
                             FSTAND(dock 1,1),FSTAND(dock 1,2),FSTAND(dock 1,4);
207$          DISPOSE:       No;


208$          CREATE,        1,TFIN::NEXT(209$);

209$          WRITE,         utilizationd2:
                             FSTAND(dock 2,1),FSTAND(dock 2,2),FSTAND(dock 2,4);
210$          DISPOSE:       No;


222$          CREATE,        1,TFIN:,1:NEXT(223$);

223$          WRITE,         squeueoutput:
                             
                             tavg(time in shipmentq at d1),tavg(time in shipmentq at d2),nc(dispatchatruck),nc(dispatchbtruck),nc(dispatchctruck),nc(#runaway),tavg(time for pickup to d1),tavg(time for pickup to d2),tavg(time for loading at d1),tavg(time for loading at d2);
224$          DISPOSE:       No;


229$          CREATE,        1,TFIN:,1:NEXT(230$);

230$          WRITE,         stimeinsystem:
                             
                             tavg(time in system from d1 for shipment),nc(# of trucks that are in system  more than 60 minutes from d1),nc(#of trucks that are from d1),tavg(time in system from d2 for shipment),nc(# of trucks that are in system  more than 60 minutes from d2),nc(#of trucks that are from d2),nc(# of trucks that are in system  more than 45 minutes from d1),nc(# of trucks that are in system  more than 45 minutes from d2);
231$          DISPOSE:       No;


;
;
;     Model statements for module:  Create 24
;

1581$         CREATE,        1,MinutesToBaseTime(0.0001),Entity rb1rec# c2:MinutesToBaseTime(1440):NEXT(1582$);

1582$         ASSIGN:        Create for receiving b shift1 c2.NumberOut=Create for receiving b shift1 c2.NumberOut + 1
                             :NEXT(245$);


;
;
;     Model statements for module:  Decide 127
;
245$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),1585$,Yes:
                             Else,1586$,Yes;
1585$         ASSIGN:        Decide 127.NumberOut True=Decide 127.NumberOut True + 1:NEXT(542$);

1586$         ASSIGN:        Decide 127.NumberOut False=Decide 127.NumberOut False + 1:NEXT(246$);


;
;
;     Model statements for module:  Assign 199
;
542$          ASSIGN:        receiptb1# c2=
                             disc(0.924,0,0.929,1,0.940,2,0.946,6,0.951,8,0.962,9,0.973,15,0.978,16,0.984,17,0.989,18,0.995,19,1,21,73)
                             :NEXT(247$);


;
;
;     Model statements for module:  Decide 128
;
247$          BRANCH,        1:
                             If,receiptb1# c2==0,237$,Yes:
                             If,receiptb1# c2==1,248$,Yes:
                             Else,249$,Yes;

;
;
;     Model statements for module:  Separate 15
;
249$          DUPLICATE,     100 - 50:
                             receiptb1# c2-1,1591$,50:NEXT(1590$);

1590$         ASSIGN:        Separate 15.NumberOut Orig=Separate 15.NumberOut Orig + 1:NEXT(248$);

1591$         ASSIGN:        Separate 15.NumberOut Dup=Separate 15.NumberOut Dup + 1:NEXT(248$);


;
;
;     Model statements for module:  Process 20
;
248$          ASSIGN:        Process 20.NumberIn=Process 20.NumberIn + 1:
                             Process 20.WIP=Process 20.WIP+1;
1621$         STACK,         1:Save:NEXT(1595$);

1595$         QUEUE,         Process 20.Queue;
1594$         SEIZE,         2,VA:
                             Resource 14,1:NEXT(1593$);

1593$         DELAY:         HoursToBaseTime(expo(10/receiptb1# c2,9)),,VA:NEXT(1636$);

1636$         ASSIGN:        Process 20.WaitTime=Process 20.WaitTime + Diff.WaitTime;
1600$         TALLY:         Process 20.WaitTimePerEntity,Diff.WaitTime,1;
1602$         TALLY:         Process 20.TotalTimePerEntity,Diff.StartTime,1;
1626$         ASSIGN:        Process 20.VATime=Process 20.VATime + Diff.VATime;
1627$         TALLY:         Process 20.VATimePerEntity,Diff.VATime,1;
1592$         RELEASE:       Resource 14,1;
1641$         STACK,         1:Destroy:NEXT(1640$);

1640$         ASSIGN:        Process 20.NumberOut=Process 20.NumberOut + 1:
                             Process 20.WIP=Process 20.WIP-1:NEXT(233$);


;
;
;     Model statements for module:  Assign 83
;
233$          ASSIGN:        producttype=2:NEXT(180$);


;
;
;     Model statements for module:  Dispose 22
;
237$          ASSIGN:        Dispose 22.NumberOut=Dispose 22.NumberOut + 1;
1643$         DISPOSE:       Yes;


;
;
;     Model statements for module:  Assign 88
;
246$          ASSIGN:        receiptb2# c2=
                             disc(0.929,0,0.935,1,0.946,7,0.957,8,0.967,12,0.973,15,0.978,17,0.984,19,0.989,21,0.995,27,1,28,74)
                             :NEXT(250$);


;
;
;     Model statements for module:  Decide 129
;
250$          BRANCH,        1:
                             If,receiptb2# c2==0,237$,Yes:
                             If,receiptb2# c2==1,251$,Yes:
                             Else,252$,Yes;

;
;
;     Model statements for module:  Separate 16
;
252$          DUPLICATE,     100 - 50:
                             receiptb2# c2-1,1648$,50:NEXT(1647$);

1647$         ASSIGN:        Separate 16.NumberOut Orig=Separate 16.NumberOut Orig + 1:NEXT(251$);

1648$         ASSIGN:        Separate 16.NumberOut Dup=Separate 16.NumberOut Dup + 1:NEXT(251$);


;
;
;     Model statements for module:  Process 21
;
251$          ASSIGN:        Process 21.NumberIn=Process 21.NumberIn + 1:
                             Process 21.WIP=Process 21.WIP+1;
1678$         STACK,         1:Save:NEXT(1652$);

1652$         QUEUE,         Process 21.Queue;
1651$         SEIZE,         2,VA:
                             Resource 15,1:NEXT(1650$);

1650$         DELAY:         HoursToBaseTime(expo(14/receiptb2# c2,10)),,VA:NEXT(1693$);

1693$         ASSIGN:        Process 21.WaitTime=Process 21.WaitTime + Diff.WaitTime;
1657$         TALLY:         Process 21.WaitTimePerEntity,Diff.WaitTime,1;
1659$         TALLY:         Process 21.TotalTimePerEntity,Diff.StartTime,1;
1683$         ASSIGN:        Process 21.VATime=Process 21.VATime + Diff.VATime;
1684$         TALLY:         Process 21.VATimePerEntity,Diff.VATime,1;
1649$         RELEASE:       Resource 15,1;
1698$         STACK,         1:Destroy:NEXT(1697$);

1697$         ASSIGN:        Process 21.NumberOut=Process 21.NumberOut + 1:
                             Process 21.WIP=Process 21.WIP-1:NEXT(233$);


;
;
;     Model statements for module:  Create 25
;

1700$         CREATE,        1,MinutesToBaseTime(0.0001),Entity rc1rec# c2:MinutesToBaseTime(1440):NEXT(1701$);

1701$         ASSIGN:        Create for receiving c shift1 c2.NumberOut=Create for receiving c shift1 c2.NumberOut + 1
                             :NEXT(253$);


;
;
;     Model statements for module:  Decide 130
;
253$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),1704$,Yes:
                             Else,1705$,Yes;
1704$         ASSIGN:        Decide 130.NumberOut True=Decide 130.NumberOut True + 1:NEXT(254$);

1705$         ASSIGN:        Decide 130.NumberOut False=Decide 130.NumberOut False + 1:NEXT(255$);


;
;
;     Model statements for module:  Assign 89
;
254$          ASSIGN:        receiptc1# c2=disc(0.848,0,0.859,1,0.880,2,0.902,3,0.935,4,0.962,5,0.973,6,0.989,7,0.995,8,1,10,75)
                             :NEXT(256$);


;
;
;     Model statements for module:  Decide 131
;
256$          BRANCH,        1:
                             If,receiptc1# c2==0,237$,Yes:
                             If,receiptc1# c2==1,257$,Yes:
                             Else,258$,Yes;

;
;
;     Model statements for module:  Separate 17
;
258$          DUPLICATE,     100 - 50:
                             receiptc1# c2-1,1710$,50:NEXT(1709$);

1709$         ASSIGN:        Separate 17.NumberOut Orig=Separate 17.NumberOut Orig + 1:NEXT(257$);

1710$         ASSIGN:        Separate 17.NumberOut Dup=Separate 17.NumberOut Dup + 1:NEXT(257$);


;
;
;     Model statements for module:  Process 22
;
257$          ASSIGN:        Process 22.NumberIn=Process 22.NumberIn + 1:
                             Process 22.WIP=Process 22.WIP+1;
1740$         STACK,         1:Save:NEXT(1714$);

1714$         QUEUE,         Process 22.Queue;
1713$         SEIZE,         2,VA:
                             Resource 16,1:NEXT(1712$);

1712$         DELAY:         HoursToBaseTime(expo(10/receiptc1# c2,11)),,VA:NEXT(1755$);

1755$         ASSIGN:        Process 22.WaitTime=Process 22.WaitTime + Diff.WaitTime;
1719$         TALLY:         Process 22.WaitTimePerEntity,Diff.WaitTime,1;
1721$         TALLY:         Process 22.TotalTimePerEntity,Diff.StartTime,1;
1745$         ASSIGN:        Process 22.VATime=Process 22.VATime + Diff.VATime;
1746$         TALLY:         Process 22.VATimePerEntity,Diff.VATime,1;
1711$         RELEASE:       Resource 16,1;
1760$         STACK,         1:Destroy:NEXT(1759$);

1759$         ASSIGN:        Process 22.NumberOut=Process 22.NumberOut + 1:
                             Process 22.WIP=Process 22.WIP-1:NEXT(234$);


;
;
;     Model statements for module:  Assign 84
;
234$          ASSIGN:        producttype=3:NEXT(180$);


;
;
;     Model statements for module:  Assign 90
;
255$          ASSIGN:        receiptc2# c2=disc(0.848,0,0.864,1,0.875,2,0.913,3,0.946,4,0.973,5,0.989,6,0.995,8,1,10,76)
                             :NEXT(259$);


;
;
;     Model statements for module:  Decide 132
;
259$          BRANCH,        1:
                             If,receiptc2# c2==0,237$,Yes:
                             If,receiptc2# c2==1,260$,Yes:
                             Else,261$,Yes;

;
;
;     Model statements for module:  Separate 18
;
261$          DUPLICATE,     100 - 50:
                             receiptc2# c2-1,1766$,50:NEXT(1765$);

1765$         ASSIGN:        Separate 18.NumberOut Orig=Separate 18.NumberOut Orig + 1:NEXT(260$);

1766$         ASSIGN:        Separate 18.NumberOut Dup=Separate 18.NumberOut Dup + 1:NEXT(260$);


;
;
;     Model statements for module:  Process 23
;
260$          ASSIGN:        Process 23.NumberIn=Process 23.NumberIn + 1:
                             Process 23.WIP=Process 23.WIP+1;
1796$         STACK,         1:Save:NEXT(1770$);

1770$         QUEUE,         Process 23.Queue;
1769$         SEIZE,         2,VA:
                             Resource 17,1:NEXT(1768$);

1768$         DELAY:         HoursToBaseTime(expo(14/receiptc2# c2,12)),,VA:NEXT(1811$);

1811$         ASSIGN:        Process 23.WaitTime=Process 23.WaitTime + Diff.WaitTime;
1775$         TALLY:         Process 23.WaitTimePerEntity,Diff.WaitTime,1;
1777$         TALLY:         Process 23.TotalTimePerEntity,Diff.StartTime,1;
1801$         ASSIGN:        Process 23.VATime=Process 23.VATime + Diff.VATime;
1802$         TALLY:         Process 23.VATimePerEntity,Diff.VATime,1;
1767$         RELEASE:       Resource 17,1;
1816$         STACK,         1:Destroy:NEXT(1815$);

1815$         ASSIGN:        Process 23.NumberOut=Process 23.NumberOut + 1:
                             Process 23.WIP=Process 23.WIP-1:NEXT(234$);


;
;
;     Model statements for module:  Create 27
;

1818$         CREATE,        1,MinutesToBaseTime(600.0001),Entity ra2rec# c2:MinutesToBaseTime(1440):NEXT(1819$);

1819$         ASSIGN:        Create for receiving a shift2 c2.NumberOut=Create for receiving a shift2 c2.NumberOut + 1
                             :NEXT(240$);


;
;
;     Model statements for module:  Decide 125
;
240$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),1822$,Yes:
                             Else,1823$,Yes;
1822$         ASSIGN:        Decide 125.NumberOut True=Decide 125.NumberOut True + 1:NEXT(235$);

1823$         ASSIGN:        Decide 125.NumberOut False=Decide 125.NumberOut False + 1:NEXT(241$);


;
;
;     Model statements for module:  Assign 85
;
235$          ASSIGN:        receipta1# c2=
                             disc(0.772,0,0.777,2,0.788,4,0.810,5,0.821,6,0.832,7,0.870,8,0.886,9,0.891,10,0.908,11,0.924,12,0.935,13,0.946,14,0.951,16,0.962,17,0.973,18,0.978,22,0.984,23,0.995,27,1,32,71)
                             :NEXT(236$);


;
;
;     Model statements for module:  Decide 124
;
236$          BRANCH,        1:
                             If,receipta1# c2==0,237$,Yes:
                             If,receipta1# c2==1,238$,Yes:
                             Else,239$,Yes;

;
;
;     Model statements for module:  Separate 13
;
239$          DUPLICATE,     100 - 50:
                             receipta1# c2-1,1828$,50:NEXT(1827$);

1827$         ASSIGN:        Separate 13.NumberOut Orig=Separate 13.NumberOut Orig + 1:NEXT(238$);

1828$         ASSIGN:        Separate 13.NumberOut Dup=Separate 13.NumberOut Dup + 1:NEXT(238$);


;
;
;     Model statements for module:  Process 18
;
238$          ASSIGN:        Process 18.NumberIn=Process 18.NumberIn + 1:
                             Process 18.WIP=Process 18.WIP+1;
1858$         STACK,         1:Save:NEXT(1832$);

1832$         QUEUE,         Process 18.Queue;
1831$         SEIZE,         2,VA:
                             Resource 12,1:NEXT(1830$);

1830$         DELAY:         HoursToBaseTime(expo(10/receipta1# c2,7)),,VA:NEXT(1873$);

1873$         ASSIGN:        Process 18.WaitTime=Process 18.WaitTime + Diff.WaitTime;
1837$         TALLY:         Process 18.WaitTimePerEntity,Diff.WaitTime,1;
1839$         TALLY:         Process 18.TotalTimePerEntity,Diff.StartTime,1;
1863$         ASSIGN:        Process 18.VATime=Process 18.VATime + Diff.VATime;
1864$         TALLY:         Process 18.VATimePerEntity,Diff.VATime,1;
1829$         RELEASE:       Resource 12,1;
1878$         STACK,         1:Destroy:NEXT(1877$);

1877$         ASSIGN:        Process 18.NumberOut=Process 18.NumberOut + 1:
                             Process 18.WIP=Process 18.WIP-1:NEXT(232$);


;
;
;     Model statements for module:  Assign 82
;
232$          ASSIGN:        producttype=1:NEXT(180$);


;
;
;     Model statements for module:  Assign 86
;
241$          ASSIGN:        receipta2# c2=
                             disc(0.810,0,0.821,1,0.832,2,0.848,4,0.853,5,0.864,6,0.880,7,0.886,8,0.891,9,0.902,10,0.913,11,0.918,12,0.924,13,0.929,14,0.940,15,0.946,16,0.962,18,0.973,20,0.978,23,0.984,26,0.989,28,0.995,29,1,36,72)
                             :NEXT(242$);


;
;
;     Model statements for module:  Decide 126
;
242$          BRANCH,        1:
                             If,receipta2# c2==0,237$,Yes:
                             If,receipta2# c2==1,244$,Yes:
                             Else,243$,Yes;

;
;
;     Model statements for module:  Separate 14
;
243$          DUPLICATE,     100 - 50:
                             receipta2# c2-1,1884$,50:NEXT(1883$);

1883$         ASSIGN:        Separate 14.NumberOut Orig=Separate 14.NumberOut Orig + 1:NEXT(244$);

1884$         ASSIGN:        Separate 14.NumberOut Dup=Separate 14.NumberOut Dup + 1:NEXT(244$);


;
;
;     Model statements for module:  Process 19
;
244$          ASSIGN:        Process 19.NumberIn=Process 19.NumberIn + 1:
                             Process 19.WIP=Process 19.WIP+1;
1914$         STACK,         1:Save:NEXT(1888$);

1888$         QUEUE,         Process 19.Queue;
1887$         SEIZE,         2,VA:
                             Resource 13,1:NEXT(1886$);

1886$         DELAY:         HoursToBaseTime(expo(14/receipta2# c2,8)),,VA:NEXT(1929$);

1929$         ASSIGN:        Process 19.WaitTime=Process 19.WaitTime + Diff.WaitTime;
1893$         TALLY:         Process 19.WaitTimePerEntity,Diff.WaitTime,1;
1895$         TALLY:         Process 19.TotalTimePerEntity,Diff.StartTime,1;
1919$         ASSIGN:        Process 19.VATime=Process 19.VATime + Diff.VATime;
1920$         TALLY:         Process 19.VATimePerEntity,Diff.VATime,1;
1885$         RELEASE:       Resource 13,1;
1934$         STACK,         1:Destroy:NEXT(1933$);

1933$         ASSIGN:        Process 19.NumberOut=Process 19.NumberOut + 1:
                             Process 19.WIP=Process 19.WIP-1:NEXT(232$);


;
;
;     Model statements for module:  Create 28
;

1936$         CREATE,        1,MinutesToBaseTime(600.0001),Entity rb2rec# c2:MinutesToBaseTime(1440):NEXT(1937$);

1937$         ASSIGN:        Create for receiving b shift2 c2.NumberOut=Create for receiving b shift2 c2.NumberOut + 1
                             :NEXT(245$);


;
;
;     Model statements for module:  Create 29
;

1940$         CREATE,        1,MinutesToBaseTime(600.0001),Entity rc2rec# c2:MinutesToBaseTime(1440):NEXT(1941$);

1941$         ASSIGN:        Create for receiving c shift2 c2.NumberOut=Create for receiving c shift2 c2.NumberOut + 1
                             :NEXT(253$);


;
;
;     Model statements for module:  Create 39
;

1944$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sb1ship# c2:MinutesToBaseTime(1440):NEXT(1945$);

1945$         ASSIGN:        Create for shipment b shift1 c2.NumberOut=Create for shipment b shift1 c2.NumberOut + 1:NEXT(275$);


;
;
;     Model statements for module:  Decide 145
;
275$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),1948$,Yes:
                             Else,1949$,Yes;
1948$         ASSIGN:        Decide 145.NumberOut True=Decide 145.NumberOut True + 1:NEXT(276$);

1949$         ASSIGN:        Decide 145.NumberOut False=Decide 145.NumberOut False + 1:NEXT(277$);


;
;
;     Model statements for module:  Assign 105
;
276$          ASSIGN:        departureb1# c2=disc(0.674,0,0.717,1,0.783,2,0.810,3,0.918,4,0.973,5,1,6,103):NEXT(278$);


;
;
;     Model statements for module:  Decide 146
;
278$          BRANCH,        1:
                             If,departureb1# c2==0,269$,Yes:
                             If,departureb1# c2==1,279$,Yes:
                             Else,280$,Yes;

;
;
;     Model statements for module:  Separate 27
;
280$          DUPLICATE,     100 - 50:
                             departureb1# c2-1,1954$,50:NEXT(1953$);

1953$         ASSIGN:        Separate 27.NumberOut Orig=Separate 27.NumberOut Orig + 1:NEXT(279$);

1954$         ASSIGN:        Separate 27.NumberOut Dup=Separate 27.NumberOut Dup + 1:NEXT(279$);


;
;
;     Model statements for module:  Process 32
;
279$          ASSIGN:        Process 32.NumberIn=Process 32.NumberIn + 1:
                             Process 32.WIP=Process 32.WIP+1;
1984$         STACK,         1:Save:NEXT(1958$);

1958$         QUEUE,         Process 32.Queue;
1957$         SEIZE,         2,VA:
                             Resource 20,1:NEXT(1956$);

1956$         DELAY:         HoursToBaseTime(expo(10/departureb1# c2,39)),,VA:NEXT(1999$);

1999$         ASSIGN:        Process 32.WaitTime=Process 32.WaitTime + Diff.WaitTime;
1963$         TALLY:         Process 32.WaitTimePerEntity,Diff.WaitTime,1;
1965$         TALLY:         Process 32.TotalTimePerEntity,Diff.StartTime,1;
1989$         ASSIGN:        Process 32.VATime=Process 32.VATime + Diff.VATime;
1990$         TALLY:         Process 32.VATimePerEntity,Diff.VATime,1;
1955$         RELEASE:       Resource 20,1;
2004$         STACK,         1:Destroy:NEXT(2003$);

2003$         ASSIGN:        Process 32.NumberOut=Process 32.NumberOut + 1:
                             Process 32.WIP=Process 32.WIP-1:NEXT(263$);


;
;
;     Model statements for module:  Assign 101
;
263$          ASSIGN:        type=2:NEXT(158$);


;
;
;     Model statements for module:  Dispose 24
;
269$          ASSIGN:        Dispose 24.NumberOut=Dispose 24.NumberOut + 1;
2006$         DISPOSE:       Yes;


;
;
;     Model statements for module:  Assign 106
;
277$          ASSIGN:        departureb2# c2=disc(0.663,0,0.707,1,0.761,2,0.853,3,0.891,4,0.946,5,0.973,6,0.995,7,1,9,104)
                             :NEXT(281$);


;
;
;     Model statements for module:  Decide 147
;
281$          BRANCH,        1:
                             If,departureb2# c2==0,269$,Yes:
                             If,departureb2# c2==1,282$,Yes:
                             Else,283$,Yes;

;
;
;     Model statements for module:  Separate 28
;
283$          DUPLICATE,     100 - 50:
                             departureb2# c2-1,2011$,50:NEXT(2010$);

2010$         ASSIGN:        Separate 28.NumberOut Orig=Separate 28.NumberOut Orig + 1:NEXT(282$);

2011$         ASSIGN:        Separate 28.NumberOut Dup=Separate 28.NumberOut Dup + 1:NEXT(282$);


;
;
;     Model statements for module:  Process 33
;
282$          ASSIGN:        Process 33.NumberIn=Process 33.NumberIn + 1:
                             Process 33.WIP=Process 33.WIP+1;
2041$         STACK,         1:Save:NEXT(2015$);

2015$         QUEUE,         Process 33.Queue;
2014$         SEIZE,         2,VA:
                             Resource 21,1:NEXT(2013$);

2013$         DELAY:         HoursToBaseTime(expo(14/departureb2# c2,40)),,VA:NEXT(2056$);

2056$         ASSIGN:        Process 33.WaitTime=Process 33.WaitTime + Diff.WaitTime;
2020$         TALLY:         Process 33.WaitTimePerEntity,Diff.WaitTime,1;
2022$         TALLY:         Process 33.TotalTimePerEntity,Diff.StartTime,1;
2046$         ASSIGN:        Process 33.VATime=Process 33.VATime + Diff.VATime;
2047$         TALLY:         Process 33.VATimePerEntity,Diff.VATime,1;
2012$         RELEASE:       Resource 21,1;
2061$         STACK,         1:Destroy:NEXT(2060$);

2060$         ASSIGN:        Process 33.NumberOut=Process 33.NumberOut + 1:
                             Process 33.WIP=Process 33.WIP-1:NEXT(263$);


;
;
;     Model statements for module:  Create 40
;

2063$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sc1ship# c2:MinutesToBaseTime(1440):NEXT(2064$);

2064$         ASSIGN:        Create for shipment c shift1 c2.NumberOut=Create for shipment c shift1 c2.NumberOut + 1:NEXT(284$);


;
;
;     Model statements for module:  Decide 148
;
284$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),2067$,Yes:
                             Else,2068$,Yes;
2067$         ASSIGN:        Decide 148.NumberOut True=Decide 148.NumberOut True + 1:NEXT(285$);

2068$         ASSIGN:        Decide 148.NumberOut False=Decide 148.NumberOut False + 1:NEXT(286$);


;
;
;     Model statements for module:  Assign 107
;
285$          ASSIGN:        departurec1# c2=disc(0.842,0,0.891,1,0.924,2,0.935,3,0.962,4,0.978,5,0.995,6,1,7,105):NEXT(287$);


;
;
;     Model statements for module:  Decide 149
;
287$          BRANCH,        1:
                             If,departurec1# c2==0,269$,Yes:
                             If,departurec1# c2==1,288$,Yes:
                             Else,289$,Yes;

;
;
;     Model statements for module:  Separate 29
;
289$          DUPLICATE,     100 - 50:
                             departurec1# c2-1,2073$,50:NEXT(2072$);

2072$         ASSIGN:        Separate 29.NumberOut Orig=Separate 29.NumberOut Orig + 1:NEXT(288$);

2073$         ASSIGN:        Separate 29.NumberOut Dup=Separate 29.NumberOut Dup + 1:NEXT(288$);


;
;
;     Model statements for module:  Process 34
;
288$          ASSIGN:        Process 34.NumberIn=Process 34.NumberIn + 1:
                             Process 34.WIP=Process 34.WIP+1;
2103$         STACK,         1:Save:NEXT(2077$);

2077$         QUEUE,         Process 34.Queue;
2076$         SEIZE,         2,VA:
                             Resource 22,1:NEXT(2075$);

2075$         DELAY:         HoursToBaseTime(expo(10/departurec1# c2,41)),,VA:NEXT(2118$);

2118$         ASSIGN:        Process 34.WaitTime=Process 34.WaitTime + Diff.WaitTime;
2082$         TALLY:         Process 34.WaitTimePerEntity,Diff.WaitTime,1;
2084$         TALLY:         Process 34.TotalTimePerEntity,Diff.StartTime,1;
2108$         ASSIGN:        Process 34.VATime=Process 34.VATime + Diff.VATime;
2109$         TALLY:         Process 34.VATimePerEntity,Diff.VATime,1;
2074$         RELEASE:       Resource 22,1;
2123$         STACK,         1:Destroy:NEXT(2122$);

2122$         ASSIGN:        Process 34.NumberOut=Process 34.NumberOut + 1:
                             Process 34.WIP=Process 34.WIP-1:NEXT(264$);


;
;
;     Model statements for module:  Assign 102
;
264$          ASSIGN:        type=3:NEXT(158$);


;
;
;     Model statements for module:  Assign 108
;
286$          ASSIGN:        departurec2# c2=disc(0.723,0,0.804,1,0.870,2,0.908,3,0.940,4,0.989,5,1,6,106):NEXT(290$);


;
;
;     Model statements for module:  Decide 150
;
290$          BRANCH,        1:
                             If,departurec2# c2==0,269$,Yes:
                             If,departurec2# c2==1,291$,Yes:
                             Else,292$,Yes;

;
;
;     Model statements for module:  Separate 30
;
292$          DUPLICATE,     100 - 50:
                             departurec2# c2-1,2129$,50:NEXT(2128$);

2128$         ASSIGN:        Separate 30.NumberOut Orig=Separate 30.NumberOut Orig + 1:NEXT(291$);

2129$         ASSIGN:        Separate 30.NumberOut Dup=Separate 30.NumberOut Dup + 1:NEXT(291$);


;
;
;     Model statements for module:  Process 35
;
291$          ASSIGN:        Process 35.NumberIn=Process 35.NumberIn + 1:
                             Process 35.WIP=Process 35.WIP+1;
2159$         STACK,         1:Save:NEXT(2133$);

2133$         QUEUE,         Process 35.Queue;
2132$         SEIZE,         2,VA:
                             Resource 23,1:NEXT(2131$);

2131$         DELAY:         HoursToBaseTime(expo(14/departurec2# c2,42)),,VA:NEXT(2174$);

2174$         ASSIGN:        Process 35.WaitTime=Process 35.WaitTime + Diff.WaitTime;
2138$         TALLY:         Process 35.WaitTimePerEntity,Diff.WaitTime,1;
2140$         TALLY:         Process 35.TotalTimePerEntity,Diff.StartTime,1;
2164$         ASSIGN:        Process 35.VATime=Process 35.VATime + Diff.VATime;
2165$         TALLY:         Process 35.VATimePerEntity,Diff.VATime,1;
2130$         RELEASE:       Resource 23,1;
2179$         STACK,         1:Destroy:NEXT(2178$);

2178$         ASSIGN:        Process 35.NumberOut=Process 35.NumberOut + 1:
                             Process 35.WIP=Process 35.WIP-1:NEXT(264$);


;
;
;     Model statements for module:  Create 42
;

2181$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sa2ship# c2:MinutesToBaseTime(1440):NEXT(2182$);

2182$         ASSIGN:        Create for shipmenta shift2 c2.NumberOut=Create for shipmenta shift2 c2.NumberOut + 1:NEXT(266$);


;
;
;     Model statements for module:  Decide 142
;
266$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),2185$,Yes:
                             Else,2186$,Yes;
2185$         ASSIGN:        Decide 142.NumberOut True=Decide 142.NumberOut True + 1:NEXT(265$);

2186$         ASSIGN:        Decide 142.NumberOut False=Decide 142.NumberOut False + 1:NEXT(267$);


;
;
;     Model statements for module:  Assign 103
;
265$          ASSIGN:        departurea1# c2=
                             disc(0.332,0,0.386,1,0.5,2,0.707,3,0.859,4,0.946,5,0.984,6,0.989,7,0.995,8,1,10,101):NEXT(268$);


;
;
;     Model statements for module:  Decide 143
;
268$          BRANCH,        1:
                             If,departurea1# c2==0,269$,Yes:
                             If,departurea1# c2==1,270$,Yes:
                             Else,271$,Yes;

;
;
;     Model statements for module:  Separate 25
;
271$          DUPLICATE,     100 - 50:
                             departurea1# c2-1,2191$,50:NEXT(2190$);

2190$         ASSIGN:        Separate 25.NumberOut Orig=Separate 25.NumberOut Orig + 1:NEXT(270$);

2191$         ASSIGN:        Separate 25.NumberOut Dup=Separate 25.NumberOut Dup + 1:NEXT(270$);


;
;
;     Model statements for module:  Process 30
;
270$          ASSIGN:        Process 30.NumberIn=Process 30.NumberIn + 1:
                             Process 30.WIP=Process 30.WIP+1;
2221$         STACK,         1:Save:NEXT(2195$);

2195$         QUEUE,         Process 30.Queue;
2194$         SEIZE,         2,VA:
                             Resource 18,1:NEXT(2193$);

2193$         DELAY:         HoursToBaseTime(expo(10/departurea1# c2,37)),,VA:NEXT(2236$);

2236$         ASSIGN:        Process 30.WaitTime=Process 30.WaitTime + Diff.WaitTime;
2200$         TALLY:         Process 30.WaitTimePerEntity,Diff.WaitTime,1;
2202$         TALLY:         Process 30.TotalTimePerEntity,Diff.StartTime,1;
2226$         ASSIGN:        Process 30.VATime=Process 30.VATime + Diff.VATime;
2227$         TALLY:         Process 30.VATimePerEntity,Diff.VATime,1;
2192$         RELEASE:       Resource 18,1;
2241$         STACK,         1:Destroy:NEXT(2240$);

2240$         ASSIGN:        Process 30.NumberOut=Process 30.NumberOut + 1:
                             Process 30.WIP=Process 30.WIP-1:NEXT(262$);


;
;
;     Model statements for module:  Assign 100
;
262$          ASSIGN:        type=1:NEXT(158$);


;
;
;     Model statements for module:  Assign 104
;
267$          ASSIGN:        departurea2# c2=disc(0.315,0,0.408,1,0.505,2,0.685,3,0.837,4,0.929,5,0.989,6,1,7,102):NEXT(272$);


;
;
;     Model statements for module:  Decide 144
;
272$          BRANCH,        1:
                             If,departurea2# c2==0,269$,Yes:
                             If,departurea2# c2==1,274$,Yes:
                             Else,273$,Yes;

;
;
;     Model statements for module:  Separate 26
;
273$          DUPLICATE,     100 - 50:
                             departurea2# c2-1,2247$,50:NEXT(2246$);

2246$         ASSIGN:        Separate 26.NumberOut Orig=Separate 26.NumberOut Orig + 1:NEXT(274$);

2247$         ASSIGN:        Separate 26.NumberOut Dup=Separate 26.NumberOut Dup + 1:NEXT(274$);


;
;
;     Model statements for module:  Process 31
;
274$          ASSIGN:        Process 31.NumberIn=Process 31.NumberIn + 1:
                             Process 31.WIP=Process 31.WIP+1;
2277$         STACK,         1:Save:NEXT(2251$);

2251$         QUEUE,         Process 31.Queue;
2250$         SEIZE,         2,VA:
                             Resource 19,1:NEXT(2249$);

2249$         DELAY:         HoursToBaseTime(expo(14/departurea2# c2,38)),,VA:NEXT(2292$);

2292$         ASSIGN:        Process 31.WaitTime=Process 31.WaitTime + Diff.WaitTime;
2256$         TALLY:         Process 31.WaitTimePerEntity,Diff.WaitTime,1;
2258$         TALLY:         Process 31.TotalTimePerEntity,Diff.StartTime,1;
2282$         ASSIGN:        Process 31.VATime=Process 31.VATime + Diff.VATime;
2283$         TALLY:         Process 31.VATimePerEntity,Diff.VATime,1;
2248$         RELEASE:       Resource 19,1;
2297$         STACK,         1:Destroy:NEXT(2296$);

2296$         ASSIGN:        Process 31.NumberOut=Process 31.NumberOut + 1:
                             Process 31.WIP=Process 31.WIP-1:NEXT(262$);


;
;
;     Model statements for module:  Create 43
;

2299$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sb2ship# c2:MinutesToBaseTime(1440):NEXT(2300$);

2300$         ASSIGN:        Create for shipment b shift2 c2.NumberOut=Create for shipment b shift2 c2.NumberOut + 1:NEXT(275$);


;
;
;     Model statements for module:  Create 45
;

2303$         CREATE,        1,MinutesToBaseTime(0.0001),Entity rb1rec# c3:MinutesToBaseTime(1440):NEXT(2304$);

2304$         ASSIGN:        Create for receiving b shift1 c3.NumberOut=Create for receiving b shift1 c3.NumberOut + 1
                             :NEXT(316$);


;
;
;     Model statements for module:  Decide 157
;
316$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),2307$,Yes:
                             Else,2308$,Yes;
2307$         ASSIGN:        Decide 157.NumberOut True=Decide 157.NumberOut True + 1:NEXT(317$);

2308$         ASSIGN:        Decide 157.NumberOut False=Decide 157.NumberOut False + 1:NEXT(318$);


;
;
;     Model statements for module:  Assign 117
;
317$          ASSIGN:        receiptb1# c3=
                             disc(0.924,0,0.929,1,0.940,2,0.946,6,0.951,8,0.962,9,0.973,15,0.978,16,0.984,17,0.989,18,0.995,19,1,21,79)
                             :NEXT(319$);


;
;
;     Model statements for module:  Decide 158
;
319$          BRANCH,        1:
                             If,receiptb1# c3==0,308$,Yes:
                             If,receiptb1# c3==1,320$,Yes:
                             Else,321$,Yes;

;
;
;     Model statements for module:  Separate 33
;
321$          DUPLICATE,     100 - 50:
                             receiptb1# c3-1,2313$,50:NEXT(2312$);

2312$         ASSIGN:        Separate 33.NumberOut Orig=Separate 33.NumberOut Orig + 1:NEXT(320$);

2313$         ASSIGN:        Separate 33.NumberOut Dup=Separate 33.NumberOut Dup + 1:NEXT(320$);


;
;
;     Model statements for module:  Process 38
;
320$          ASSIGN:        Process 38.NumberIn=Process 38.NumberIn + 1:
                             Process 38.WIP=Process 38.WIP+1;
2343$         STACK,         1:Save:NEXT(2317$);

2317$         QUEUE,         Process 38.Queue;
2316$         SEIZE,         2,VA:
                             Resource 26,1:NEXT(2315$);

2315$         DELAY:         HoursToBaseTime(expo(10/receiptb1# c3,15)),,VA:NEXT(2358$);

2358$         ASSIGN:        Process 38.WaitTime=Process 38.WaitTime + Diff.WaitTime;
2322$         TALLY:         Process 38.WaitTimePerEntity,Diff.WaitTime,1;
2324$         TALLY:         Process 38.TotalTimePerEntity,Diff.StartTime,1;
2348$         ASSIGN:        Process 38.VATime=Process 38.VATime + Diff.VATime;
2349$         TALLY:         Process 38.VATimePerEntity,Diff.VATime,1;
2314$         RELEASE:       Resource 26,1;
2363$         STACK,         1:Destroy:NEXT(2362$);

2362$         ASSIGN:        Process 38.NumberOut=Process 38.NumberOut + 1:
                             Process 38.WIP=Process 38.WIP-1:NEXT(304$);


;
;
;     Model statements for module:  Assign 113
;
304$          ASSIGN:        producttype=2:NEXT(180$);


;
;
;     Model statements for module:  Dispose 25
;
308$          ASSIGN:        Dispose 25.NumberOut=Dispose 25.NumberOut + 1;
2365$         DISPOSE:       Yes;


;
;
;     Model statements for module:  Assign 118
;
318$          ASSIGN:        receiptb2# c3=
                             disc(0.929,0,0.935,1,0.946,7,0.957,8,0.967,12,0.973,15,0.978,17,0.984,19,0.989,21,0.995,27,1,28,80)
                             :NEXT(322$);


;
;
;     Model statements for module:  Decide 159
;
322$          BRANCH,        1:
                             If,receiptb2# c3==0,308$,Yes:
                             If,receiptb2# c3==1,323$,Yes:
                             Else,324$,Yes;

;
;
;     Model statements for module:  Separate 34
;
324$          DUPLICATE,     100 - 50:
                             receiptb2# c3-1,2370$,50:NEXT(2369$);

2369$         ASSIGN:        Separate 34.NumberOut Orig=Separate 34.NumberOut Orig + 1:NEXT(323$);

2370$         ASSIGN:        Separate 34.NumberOut Dup=Separate 34.NumberOut Dup + 1:NEXT(323$);


;
;
;     Model statements for module:  Process 39
;
323$          ASSIGN:        Process 39.NumberIn=Process 39.NumberIn + 1:
                             Process 39.WIP=Process 39.WIP+1;
2400$         STACK,         1:Save:NEXT(2374$);

2374$         QUEUE,         Process 39.Queue;
2373$         SEIZE,         2,VA:
                             Resource 27,1:NEXT(2372$);

2372$         DELAY:         HoursToBaseTime(expo(14/receiptb2# c3,16)),,VA:NEXT(2415$);

2415$         ASSIGN:        Process 39.WaitTime=Process 39.WaitTime + Diff.WaitTime;
2379$         TALLY:         Process 39.WaitTimePerEntity,Diff.WaitTime,1;
2381$         TALLY:         Process 39.TotalTimePerEntity,Diff.StartTime,1;
2405$         ASSIGN:        Process 39.VATime=Process 39.VATime + Diff.VATime;
2406$         TALLY:         Process 39.VATimePerEntity,Diff.VATime,1;
2371$         RELEASE:       Resource 27,1;
2420$         STACK,         1:Destroy:NEXT(2419$);

2419$         ASSIGN:        Process 39.NumberOut=Process 39.NumberOut + 1:
                             Process 39.WIP=Process 39.WIP-1:NEXT(304$);


;
;
;     Model statements for module:  Create 46
;

2422$         CREATE,        1,MinutesToBaseTime(0.0001),Entity rc1rec# c3:MinutesToBaseTime(1440):NEXT(2423$);

2423$         ASSIGN:        Create for receiving c shift1 c3.NumberOut=Create for receiving c shift1 c3.NumberOut + 1
                             :NEXT(325$);


;
;
;     Model statements for module:  Decide 160
;
325$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),2426$,Yes:
                             Else,2427$,Yes;
2426$         ASSIGN:        Decide 160.NumberOut True=Decide 160.NumberOut True + 1:NEXT(326$);

2427$         ASSIGN:        Decide 160.NumberOut False=Decide 160.NumberOut False + 1:NEXT(327$);


;
;
;     Model statements for module:  Assign 119
;
326$          ASSIGN:        receiptc1# c3=disc(0.848,0,0.859,1,0.880,2,0.902,3,0.935,4,0.962,5,0.973,6,0.989,7,0.995,8,1,10,81)
                             :NEXT(328$);


;
;
;     Model statements for module:  Decide 161
;
328$          BRANCH,        1:
                             If,receiptc1# c3==0,308$,Yes:
                             If,receiptc1# c3==1,329$,Yes:
                             Else,330$,Yes;

;
;
;     Model statements for module:  Separate 35
;
330$          DUPLICATE,     100 - 50:
                             receiptc1# c3-1,2432$,50:NEXT(2431$);

2431$         ASSIGN:        Separate 35.NumberOut Orig=Separate 35.NumberOut Orig + 1:NEXT(329$);

2432$         ASSIGN:        Separate 35.NumberOut Dup=Separate 35.NumberOut Dup + 1:NEXT(329$);


;
;
;     Model statements for module:  Process 40
;
329$          ASSIGN:        Process 40.NumberIn=Process 40.NumberIn + 1:
                             Process 40.WIP=Process 40.WIP+1;
2462$         STACK,         1:Save:NEXT(2436$);

2436$         QUEUE,         Process 40.Queue;
2435$         SEIZE,         2,VA:
                             Resource 28,1:NEXT(2434$);

2434$         DELAY:         HoursToBaseTime(expo(10/receiptc1# c3,17)),,VA:NEXT(2477$);

2477$         ASSIGN:        Process 40.WaitTime=Process 40.WaitTime + Diff.WaitTime;
2441$         TALLY:         Process 40.WaitTimePerEntity,Diff.WaitTime,1;
2443$         TALLY:         Process 40.TotalTimePerEntity,Diff.StartTime,1;
2467$         ASSIGN:        Process 40.VATime=Process 40.VATime + Diff.VATime;
2468$         TALLY:         Process 40.VATimePerEntity,Diff.VATime,1;
2433$         RELEASE:       Resource 28,1;
2482$         STACK,         1:Destroy:NEXT(2481$);

2481$         ASSIGN:        Process 40.NumberOut=Process 40.NumberOut + 1:
                             Process 40.WIP=Process 40.WIP-1:NEXT(305$);


;
;
;     Model statements for module:  Assign 114
;
305$          ASSIGN:        producttype=3:NEXT(180$);


;
;
;     Model statements for module:  Assign 120
;
327$          ASSIGN:        receiptc2# c3=disc(0.848,0,0.864,1,0.875,2,0.913,3,0.946,4,0.973,5,0.989,6,0.995,8,1,10,82)
                             :NEXT(331$);


;
;
;     Model statements for module:  Decide 162
;
331$          BRANCH,        1:
                             If,receiptc2# c3==0,308$,Yes:
                             If,receiptc2# c3==1,332$,Yes:
                             Else,333$,Yes;

;
;
;     Model statements for module:  Separate 36
;
333$          DUPLICATE,     100 - 50:
                             receiptc2# c3-1,2488$,50:NEXT(2487$);

2487$         ASSIGN:        Separate 36.NumberOut Orig=Separate 36.NumberOut Orig + 1:NEXT(332$);

2488$         ASSIGN:        Separate 36.NumberOut Dup=Separate 36.NumberOut Dup + 1:NEXT(332$);


;
;
;     Model statements for module:  Process 41
;
332$          ASSIGN:        Process 41.NumberIn=Process 41.NumberIn + 1:
                             Process 41.WIP=Process 41.WIP+1;
2518$         STACK,         1:Save:NEXT(2492$);

2492$         QUEUE,         Process 41.Queue;
2491$         SEIZE,         2,VA:
                             Resource 29,1:NEXT(2490$);

2490$         DELAY:         HoursToBaseTime(expo(14/receiptc2# c3,18)),,VA:NEXT(2533$);

2533$         ASSIGN:        Process 41.WaitTime=Process 41.WaitTime + Diff.WaitTime;
2497$         TALLY:         Process 41.WaitTimePerEntity,Diff.WaitTime,1;
2499$         TALLY:         Process 41.TotalTimePerEntity,Diff.StartTime,1;
2523$         ASSIGN:        Process 41.VATime=Process 41.VATime + Diff.VATime;
2524$         TALLY:         Process 41.VATimePerEntity,Diff.VATime,1;
2489$         RELEASE:       Resource 29,1;
2538$         STACK,         1:Destroy:NEXT(2537$);

2537$         ASSIGN:        Process 41.NumberOut=Process 41.NumberOut + 1:
                             Process 41.WIP=Process 41.WIP-1:NEXT(305$);


;
;
;     Model statements for module:  Create 48
;

2540$         CREATE,        1,MinutesToBaseTime(600.0001),Entity ra2rec# c3:MinutesToBaseTime(1440):NEXT(2541$);

2541$         ASSIGN:        Create for receiving a shift2 c3.NumberOut=Create for receiving a shift2 c3.NumberOut + 1
                             :NEXT(311$);


;
;
;     Model statements for module:  Decide 155
;
311$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),2544$,Yes:
                             Else,2545$,Yes;
2544$         ASSIGN:        Decide 155.NumberOut True=Decide 155.NumberOut True + 1:NEXT(306$);

2545$         ASSIGN:        Decide 155.NumberOut False=Decide 155.NumberOut False + 1:NEXT(312$);


;
;
;     Model statements for module:  Assign 115
;
306$          ASSIGN:        receipta1# c3=
                             disc(0.772,0,0.777,2,0.788,4,0.810,5,0.821,6,0.832,7,0.870,8,0.886,9,0.891,10,0.908,11,0.924,12,0.935,13,0.946,14,0.951,16,0.962,17,0.973,18,0.978,22,0.984,23,0.995,27,1,32,77)
                             :NEXT(307$);


;
;
;     Model statements for module:  Decide 154
;
307$          BRANCH,        1:
                             If,receipta1# c3==0,308$,Yes:
                             If,receipta1# c3==1,309$,Yes:
                             Else,310$,Yes;

;
;
;     Model statements for module:  Separate 31
;
310$          DUPLICATE,     100 - 50:
                             receipta1# c3-1,2550$,50:NEXT(2549$);

2549$         ASSIGN:        Separate 31.NumberOut Orig=Separate 31.NumberOut Orig + 1:NEXT(309$);

2550$         ASSIGN:        Separate 31.NumberOut Dup=Separate 31.NumberOut Dup + 1:NEXT(309$);


;
;
;     Model statements for module:  Process 36
;
309$          ASSIGN:        Process 36.NumberIn=Process 36.NumberIn + 1:
                             Process 36.WIP=Process 36.WIP+1;
2580$         STACK,         1:Save:NEXT(2554$);

2554$         QUEUE,         Process 36.Queue;
2553$         SEIZE,         2,VA:
                             Resource 24,1:NEXT(2552$);

2552$         DELAY:         HoursToBaseTime(expo(10/receipta1# c3,13)),,VA:NEXT(2595$);

2595$         ASSIGN:        Process 36.WaitTime=Process 36.WaitTime + Diff.WaitTime;
2559$         TALLY:         Process 36.WaitTimePerEntity,Diff.WaitTime,1;
2561$         TALLY:         Process 36.TotalTimePerEntity,Diff.StartTime,1;
2585$         ASSIGN:        Process 36.VATime=Process 36.VATime + Diff.VATime;
2586$         TALLY:         Process 36.VATimePerEntity,Diff.VATime,1;
2551$         RELEASE:       Resource 24,1;
2600$         STACK,         1:Destroy:NEXT(2599$);

2599$         ASSIGN:        Process 36.NumberOut=Process 36.NumberOut + 1:
                             Process 36.WIP=Process 36.WIP-1:NEXT(303$);


;
;
;     Model statements for module:  Assign 112
;
303$          ASSIGN:        producttype=1:NEXT(180$);


;
;
;     Model statements for module:  Assign 116
;
312$          ASSIGN:        receipta2# c3=
                             disc(0.810,0,0.821,1,0.832,2,0.848,4,0.853,5,0.864,6,0.880,7,0.886,8,0.891,9,0.902,10,0.913,11,0.918,12,0.924,13,0.929,14,0.940,15,0.946,16,0.962,18,0.973,20,0.978,23,0.984,26,0.989,28,0.995,29,1,36,78)
                             :NEXT(313$);


;
;
;     Model statements for module:  Decide 156
;
313$          BRANCH,        1:
                             If,receipta2# c3==0,308$,Yes:
                             If,receipta2# c3==1,315$,Yes:
                             Else,314$,Yes;

;
;
;     Model statements for module:  Separate 32
;
314$          DUPLICATE,     100 - 50:
                             receipta2# c3-1,2606$,50:NEXT(2605$);

2605$         ASSIGN:        Separate 32.NumberOut Orig=Separate 32.NumberOut Orig + 1:NEXT(315$);

2606$         ASSIGN:        Separate 32.NumberOut Dup=Separate 32.NumberOut Dup + 1:NEXT(315$);


;
;
;     Model statements for module:  Process 37
;
315$          ASSIGN:        Process 37.NumberIn=Process 37.NumberIn + 1:
                             Process 37.WIP=Process 37.WIP+1;
2636$         STACK,         1:Save:NEXT(2610$);

2610$         QUEUE,         Process 37.Queue;
2609$         SEIZE,         2,VA:
                             Resource 25,1:NEXT(2608$);

2608$         DELAY:         HoursToBaseTime(expo(14/receipta2# c3,14)),,VA:NEXT(2651$);

2651$         ASSIGN:        Process 37.WaitTime=Process 37.WaitTime + Diff.WaitTime;
2615$         TALLY:         Process 37.WaitTimePerEntity,Diff.WaitTime,1;
2617$         TALLY:         Process 37.TotalTimePerEntity,Diff.StartTime,1;
2641$         ASSIGN:        Process 37.VATime=Process 37.VATime + Diff.VATime;
2642$         TALLY:         Process 37.VATimePerEntity,Diff.VATime,1;
2607$         RELEASE:       Resource 25,1;
2656$         STACK,         1:Destroy:NEXT(2655$);

2655$         ASSIGN:        Process 37.NumberOut=Process 37.NumberOut + 1:
                             Process 37.WIP=Process 37.WIP-1:NEXT(303$);


;
;
;     Model statements for module:  Create 49
;

2658$         CREATE,        1,MinutesToBaseTime(600.0001),Entity rb2rec# c3:MinutesToBaseTime(1440):NEXT(2659$);

2659$         ASSIGN:        Create for receiving b shift2 c3.NumberOut=Create for receiving b shift2 c3.NumberOut + 1
                             :NEXT(316$);


;
;
;     Model statements for module:  Create 50
;

2662$         CREATE,        1,MinutesToBaseTime(600.0001),Entity rc2rec# c3:MinutesToBaseTime(1440):NEXT(2663$);

2663$         ASSIGN:        Create for receiving c shift2 c3.NumberOut=Create for receiving c shift2 c3.NumberOut + 1
                             :NEXT(325$);


;
;
;     Model statements for module:  Create 54
;

2666$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sb1ship# c3:MinutesToBaseTime(1440):NEXT(2667$);

2667$         ASSIGN:        Create for shipment b shift1 c3.NumberOut=Create for shipment b shift1 c3.NumberOut + 1:NEXT(347$);


;
;
;     Model statements for module:  Decide 166
;
347$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),2670$,Yes:
                             Else,2671$,Yes;
2670$         ASSIGN:        Decide 166.NumberOut True=Decide 166.NumberOut True + 1:NEXT(348$);

2671$         ASSIGN:        Decide 166.NumberOut False=Decide 166.NumberOut False + 1:NEXT(349$);


;
;
;     Model statements for module:  Assign 126
;
348$          ASSIGN:        departureb1# c3=disc(0.674,0,0.717,1,0.783,2,0.810,3,0.918,4,0.973,5,1,6,109):NEXT(350$);


;
;
;     Model statements for module:  Decide 167
;
350$          BRANCH,        1:
                             If,departureb1# c3==0,341$,Yes:
                             If,departureb1# c3==1,351$,Yes:
                             Else,352$,Yes;

;
;
;     Model statements for module:  Separate 39
;
352$          DUPLICATE,     100 - 50:
                             departureb1# c3-1,2676$,50:NEXT(2675$);

2675$         ASSIGN:        Separate 39.NumberOut Orig=Separate 39.NumberOut Orig + 1:NEXT(351$);

2676$         ASSIGN:        Separate 39.NumberOut Dup=Separate 39.NumberOut Dup + 1:NEXT(351$);


;
;
;     Model statements for module:  Process 44
;
351$          ASSIGN:        Process 44.NumberIn=Process 44.NumberIn + 1:
                             Process 44.WIP=Process 44.WIP+1;
2706$         STACK,         1:Save:NEXT(2680$);

2680$         QUEUE,         Process 44.Queue;
2679$         SEIZE,         2,VA:
                             Resource 32,1:NEXT(2678$);

2678$         DELAY:         HoursToBaseTime(expo(10/departureb1# c3,45)),,VA:NEXT(2721$);

2721$         ASSIGN:        Process 44.WaitTime=Process 44.WaitTime + Diff.WaitTime;
2685$         TALLY:         Process 44.WaitTimePerEntity,Diff.WaitTime,1;
2687$         TALLY:         Process 44.TotalTimePerEntity,Diff.StartTime,1;
2711$         ASSIGN:        Process 44.VATime=Process 44.VATime + Diff.VATime;
2712$         TALLY:         Process 44.VATimePerEntity,Diff.VATime,1;
2677$         RELEASE:       Resource 32,1;
2726$         STACK,         1:Destroy:NEXT(2725$);

2725$         ASSIGN:        Process 44.NumberOut=Process 44.NumberOut + 1:
                             Process 44.WIP=Process 44.WIP-1:NEXT(335$);


;
;
;     Model statements for module:  Assign 122
;
335$          ASSIGN:        type=2:NEXT(158$);


;
;
;     Model statements for module:  Dispose 26
;
341$          ASSIGN:        Dispose 26.NumberOut=Dispose 26.NumberOut + 1;
2728$         DISPOSE:       Yes;


;
;
;     Model statements for module:  Assign 127
;
349$          ASSIGN:        departureb2# c3=disc(0.663,0,0.707,1,0.761,2,0.853,3,0.891,4,0.946,5,0.973,6,0.995,7,1,9,110)
                             :NEXT(353$);


;
;
;     Model statements for module:  Decide 168
;
353$          BRANCH,        1:
                             If,departureb2# c3==0,341$,Yes:
                             If,departureb2# c3==1,354$,Yes:
                             Else,355$,Yes;

;
;
;     Model statements for module:  Separate 40
;
355$          DUPLICATE,     100 - 50:
                             departureb2# c3-1,2733$,50:NEXT(2732$);

2732$         ASSIGN:        Separate 40.NumberOut Orig=Separate 40.NumberOut Orig + 1:NEXT(354$);

2733$         ASSIGN:        Separate 40.NumberOut Dup=Separate 40.NumberOut Dup + 1:NEXT(354$);


;
;
;     Model statements for module:  Process 45
;
354$          ASSIGN:        Process 45.NumberIn=Process 45.NumberIn + 1:
                             Process 45.WIP=Process 45.WIP+1;
2763$         STACK,         1:Save:NEXT(2737$);

2737$         QUEUE,         Process 45.Queue;
2736$         SEIZE,         2,VA:
                             Resource 33,1:NEXT(2735$);

2735$         DELAY:         HoursToBaseTime(expo(14/departureb2# c3,46)),,VA:NEXT(2778$);

2778$         ASSIGN:        Process 45.WaitTime=Process 45.WaitTime + Diff.WaitTime;
2742$         TALLY:         Process 45.WaitTimePerEntity,Diff.WaitTime,1;
2744$         TALLY:         Process 45.TotalTimePerEntity,Diff.StartTime,1;
2768$         ASSIGN:        Process 45.VATime=Process 45.VATime + Diff.VATime;
2769$         TALLY:         Process 45.VATimePerEntity,Diff.VATime,1;
2734$         RELEASE:       Resource 33,1;
2783$         STACK,         1:Destroy:NEXT(2782$);

2782$         ASSIGN:        Process 45.NumberOut=Process 45.NumberOut + 1:
                             Process 45.WIP=Process 45.WIP-1:NEXT(335$);


;
;
;     Model statements for module:  Create 55
;

2785$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sc1ship# c3:MinutesToBaseTime(1440):NEXT(2786$);

2786$         ASSIGN:        Create for shipment c shift1 c3.NumberOut=Create for shipment c shift1 c3.NumberOut + 1:NEXT(356$);


;
;
;     Model statements for module:  Decide 169
;
356$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),2789$,Yes:
                             Else,2790$,Yes;
2789$         ASSIGN:        Decide 169.NumberOut True=Decide 169.NumberOut True + 1:NEXT(357$);

2790$         ASSIGN:        Decide 169.NumberOut False=Decide 169.NumberOut False + 1:NEXT(358$);


;
;
;     Model statements for module:  Assign 128
;
357$          ASSIGN:        departurec1# c3=disc(0.842,0,0.891,1,0.924,2,0.935,3,0.962,4,0.978,5,0.995,6,1,7,111):NEXT(359$);


;
;
;     Model statements for module:  Decide 170
;
359$          BRANCH,        1:
                             If,departurec1# c3==0,341$,Yes:
                             If,departurec1# c3==1,360$,Yes:
                             Else,361$,Yes;

;
;
;     Model statements for module:  Separate 41
;
361$          DUPLICATE,     100 - 50:
                             departurec1# c3-1,2795$,50:NEXT(2794$);

2794$         ASSIGN:        Separate 41.NumberOut Orig=Separate 41.NumberOut Orig + 1:NEXT(360$);

2795$         ASSIGN:        Separate 41.NumberOut Dup=Separate 41.NumberOut Dup + 1:NEXT(360$);


;
;
;     Model statements for module:  Process 46
;
360$          ASSIGN:        Process 46.NumberIn=Process 46.NumberIn + 1:
                             Process 46.WIP=Process 46.WIP+1;
2825$         STACK,         1:Save:NEXT(2799$);

2799$         QUEUE,         Process 46.Queue;
2798$         SEIZE,         2,VA:
                             Resource 34,1:NEXT(2797$);

2797$         DELAY:         HoursToBaseTime(expo(10/departurec1# c3,47)),,VA:NEXT(2840$);

2840$         ASSIGN:        Process 46.WaitTime=Process 46.WaitTime + Diff.WaitTime;
2804$         TALLY:         Process 46.WaitTimePerEntity,Diff.WaitTime,1;
2806$         TALLY:         Process 46.TotalTimePerEntity,Diff.StartTime,1;
2830$         ASSIGN:        Process 46.VATime=Process 46.VATime + Diff.VATime;
2831$         TALLY:         Process 46.VATimePerEntity,Diff.VATime,1;
2796$         RELEASE:       Resource 34,1;
2845$         STACK,         1:Destroy:NEXT(2844$);

2844$         ASSIGN:        Process 46.NumberOut=Process 46.NumberOut + 1:
                             Process 46.WIP=Process 46.WIP-1:NEXT(336$);


;
;
;     Model statements for module:  Assign 123
;
336$          ASSIGN:        type=3:NEXT(158$);


;
;
;     Model statements for module:  Assign 129
;
358$          ASSIGN:        departurec2# c3=disc(0.723,0,0.804,1,0.870,2,0.908,3,0.940,4,0.989,5,1,6,112):NEXT(362$);


;
;
;     Model statements for module:  Decide 171
;
362$          BRANCH,        1:
                             If,departurec2# c3==0,341$,Yes:
                             If,departurec2# c3==1,363$,Yes:
                             Else,364$,Yes;

;
;
;     Model statements for module:  Separate 42
;
364$          DUPLICATE,     100 - 50:
                             departurec2# c3-1,2851$,50:NEXT(2850$);

2850$         ASSIGN:        Separate 42.NumberOut Orig=Separate 42.NumberOut Orig + 1:NEXT(363$);

2851$         ASSIGN:        Separate 42.NumberOut Dup=Separate 42.NumberOut Dup + 1:NEXT(363$);


;
;
;     Model statements for module:  Process 47
;
363$          ASSIGN:        Process 47.NumberIn=Process 47.NumberIn + 1:
                             Process 47.WIP=Process 47.WIP+1;
2881$         STACK,         1:Save:NEXT(2855$);

2855$         QUEUE,         Process 47.Queue;
2854$         SEIZE,         2,VA:
                             Resource 35,1:NEXT(2853$);

2853$         DELAY:         HoursToBaseTime(expo(14/departurec2# c3,48)),,VA:NEXT(2896$);

2896$         ASSIGN:        Process 47.WaitTime=Process 47.WaitTime + Diff.WaitTime;
2860$         TALLY:         Process 47.WaitTimePerEntity,Diff.WaitTime,1;
2862$         TALLY:         Process 47.TotalTimePerEntity,Diff.StartTime,1;
2886$         ASSIGN:        Process 47.VATime=Process 47.VATime + Diff.VATime;
2887$         TALLY:         Process 47.VATimePerEntity,Diff.VATime,1;
2852$         RELEASE:       Resource 35,1;
2901$         STACK,         1:Destroy:NEXT(2900$);

2900$         ASSIGN:        Process 47.NumberOut=Process 47.NumberOut + 1:
                             Process 47.WIP=Process 47.WIP-1:NEXT(336$);


;
;
;     Model statements for module:  Create 57
;

2903$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sa2ship# c3:MinutesToBaseTime(1440):NEXT(2904$);

2904$         ASSIGN:        Create for shipmenta shift2 c3.NumberOut=Create for shipmenta shift2 c3.NumberOut + 1:NEXT(338$);


;
;
;     Model statements for module:  Decide 163
;
338$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),2907$,Yes:
                             Else,2908$,Yes;
2907$         ASSIGN:        Decide 163.NumberOut True=Decide 163.NumberOut True + 1:NEXT(337$);

2908$         ASSIGN:        Decide 163.NumberOut False=Decide 163.NumberOut False + 1:NEXT(339$);


;
;
;     Model statements for module:  Assign 124
;
337$          ASSIGN:        departurea1# c3=
                             disc(0.332,0,0.386,1,0.5,2,0.707,3,0.859,4,0.946,5,0.984,6,0.989,7,0.995,8,1,10,107):NEXT(340$);


;
;
;     Model statements for module:  Decide 164
;
340$          BRANCH,        1:
                             If,departurea1# c3==0,341$,Yes:
                             If,departurea1# c3==1,342$,Yes:
                             Else,343$,Yes;

;
;
;     Model statements for module:  Separate 37
;
343$          DUPLICATE,     100 - 50:
                             departurea1# c3-1,2913$,50:NEXT(2912$);

2912$         ASSIGN:        Separate 37.NumberOut Orig=Separate 37.NumberOut Orig + 1:NEXT(342$);

2913$         ASSIGN:        Separate 37.NumberOut Dup=Separate 37.NumberOut Dup + 1:NEXT(342$);


;
;
;     Model statements for module:  Process 42
;
342$          ASSIGN:        Process 42.NumberIn=Process 42.NumberIn + 1:
                             Process 42.WIP=Process 42.WIP+1;
2943$         STACK,         1:Save:NEXT(2917$);

2917$         QUEUE,         Process 42.Queue;
2916$         SEIZE,         2,VA:
                             Resource 30,1:NEXT(2915$);

2915$         DELAY:         HoursToBaseTime(expo(10/departurea1# c3,43)),,VA:NEXT(2958$);

2958$         ASSIGN:        Process 42.WaitTime=Process 42.WaitTime + Diff.WaitTime;
2922$         TALLY:         Process 42.WaitTimePerEntity,Diff.WaitTime,1;
2924$         TALLY:         Process 42.TotalTimePerEntity,Diff.StartTime,1;
2948$         ASSIGN:        Process 42.VATime=Process 42.VATime + Diff.VATime;
2949$         TALLY:         Process 42.VATimePerEntity,Diff.VATime,1;
2914$         RELEASE:       Resource 30,1;
2963$         STACK,         1:Destroy:NEXT(2962$);

2962$         ASSIGN:        Process 42.NumberOut=Process 42.NumberOut + 1:
                             Process 42.WIP=Process 42.WIP-1:NEXT(334$);


;
;
;     Model statements for module:  Assign 121
;
334$          ASSIGN:        type=1:NEXT(158$);


;
;
;     Model statements for module:  Assign 125
;
339$          ASSIGN:        departurea2# c3=disc(0.315,0,0.408,1,0.505,2,0.685,3,0.837,4,0.929,5,0.989,6,1,7,108):NEXT(344$);


;
;
;     Model statements for module:  Decide 165
;
344$          BRANCH,        1:
                             If,departurea2# c3==0,341$,Yes:
                             If,departurea2# c3==1,346$,Yes:
                             Else,345$,Yes;

;
;
;     Model statements for module:  Separate 38
;
345$          DUPLICATE,     100 - 50:
                             departurea2# c3-1,2969$,50:NEXT(2968$);

2968$         ASSIGN:        Separate 38.NumberOut Orig=Separate 38.NumberOut Orig + 1:NEXT(346$);

2969$         ASSIGN:        Separate 38.NumberOut Dup=Separate 38.NumberOut Dup + 1:NEXT(346$);


;
;
;     Model statements for module:  Process 43
;
346$          ASSIGN:        Process 43.NumberIn=Process 43.NumberIn + 1:
                             Process 43.WIP=Process 43.WIP+1;
2999$         STACK,         1:Save:NEXT(2973$);

2973$         QUEUE,         Process 43.Queue;
2972$         SEIZE,         2,VA:
                             Resource 31,1:NEXT(2971$);

2971$         DELAY:         HoursToBaseTime(expo(14/departurea2# c3,44)),,VA:NEXT(3014$);

3014$         ASSIGN:        Process 43.WaitTime=Process 43.WaitTime + Diff.WaitTime;
2978$         TALLY:         Process 43.WaitTimePerEntity,Diff.WaitTime,1;
2980$         TALLY:         Process 43.TotalTimePerEntity,Diff.StartTime,1;
3004$         ASSIGN:        Process 43.VATime=Process 43.VATime + Diff.VATime;
3005$         TALLY:         Process 43.VATimePerEntity,Diff.VATime,1;
2970$         RELEASE:       Resource 31,1;
3019$         STACK,         1:Destroy:NEXT(3018$);

3018$         ASSIGN:        Process 43.NumberOut=Process 43.NumberOut + 1:
                             Process 43.WIP=Process 43.WIP-1:NEXT(334$);


;
;
;     Model statements for module:  Create 58
;

3021$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sb2ship# c3:MinutesToBaseTime(1440):NEXT(3022$);

3022$         ASSIGN:        Create for shipment b shift2 c3.NumberOut=Create for shipment b shift2 c3.NumberOut + 1:NEXT(347$);


;
;
;     Model statements for module:  Create 60
;

3025$         CREATE,        1,MinutesToBaseTime(0.0001),Entity rb1rec# c4:MinutesToBaseTime(1440):NEXT(3026$);

3026$         ASSIGN:        Create for receiving b shift1 c4.NumberOut=Create for receiving b shift1 c4.NumberOut + 1
                             :NEXT(378$);


;
;
;     Model statements for module:  Decide 175
;
378$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),3029$,Yes:
                             Else,3030$,Yes;
3029$         ASSIGN:        Decide 175.NumberOut True=Decide 175.NumberOut True + 1:NEXT(379$);

3030$         ASSIGN:        Decide 175.NumberOut False=Decide 175.NumberOut False + 1:NEXT(380$);


;
;
;     Model statements for module:  Assign 135
;
379$          ASSIGN:        receiptb1# c4=
                             disc(0.924,0,0.929,1,0.940,2,0.946,6,0.951,8,0.962,9,0.973,15,0.978,16,0.984,17,0.989,18,0.995,19,1,21,85)
                             :NEXT(381$);


;
;
;     Model statements for module:  Decide 176
;
381$          BRANCH,        1:
                             If,receiptb1# c4==0,370$,Yes:
                             If,receiptb1# c4==1,382$,Yes:
                             Else,383$,Yes;

;
;
;     Model statements for module:  Separate 45
;
383$          DUPLICATE,     100 - 50:
                             receiptb1# c4-1,3035$,50:NEXT(3034$);

3034$         ASSIGN:        Separate 45.NumberOut Orig=Separate 45.NumberOut Orig + 1:NEXT(382$);

3035$         ASSIGN:        Separate 45.NumberOut Dup=Separate 45.NumberOut Dup + 1:NEXT(382$);


;
;
;     Model statements for module:  Process 50
;
382$          ASSIGN:        Process 50.NumberIn=Process 50.NumberIn + 1:
                             Process 50.WIP=Process 50.WIP+1;
3065$         STACK,         1:Save:NEXT(3039$);

3039$         QUEUE,         Process 50.Queue;
3038$         SEIZE,         2,VA:
                             Resource 38,1:NEXT(3037$);

3037$         DELAY:         HoursToBaseTime(expo(10/receiptb1# c4,21)),,VA:NEXT(3080$);

3080$         ASSIGN:        Process 50.WaitTime=Process 50.WaitTime + Diff.WaitTime;
3044$         TALLY:         Process 50.WaitTimePerEntity,Diff.WaitTime,1;
3046$         TALLY:         Process 50.TotalTimePerEntity,Diff.StartTime,1;
3070$         ASSIGN:        Process 50.VATime=Process 50.VATime + Diff.VATime;
3071$         TALLY:         Process 50.VATimePerEntity,Diff.VATime,1;
3036$         RELEASE:       Resource 38,1;
3085$         STACK,         1:Destroy:NEXT(3084$);

3084$         ASSIGN:        Process 50.NumberOut=Process 50.NumberOut + 1:
                             Process 50.WIP=Process 50.WIP-1:NEXT(366$);


;
;
;     Model statements for module:  Assign 131
;
366$          ASSIGN:        producttype=2:NEXT(180$);


;
;
;     Model statements for module:  Dispose 27
;
370$          ASSIGN:        Dispose 27.NumberOut=Dispose 27.NumberOut + 1;
3087$         DISPOSE:       Yes;


;
;
;     Model statements for module:  Assign 136
;
380$          ASSIGN:        receiptb2# c4=
                             disc(0.929,0,0.935,1,0.946,7,0.957,8,0.967,12,0.973,15,0.978,17,0.984,19,0.989,21,0.995,27,1,28,86)
                             :NEXT(384$);


;
;
;     Model statements for module:  Decide 177
;
384$          BRANCH,        1:
                             If,receiptb2# c4==0,370$,Yes:
                             If,receiptb2# c4==1,385$,Yes:
                             Else,386$,Yes;

;
;
;     Model statements for module:  Separate 46
;
386$          DUPLICATE,     100 - 50:
                             receiptb2# c4-1,3092$,50:NEXT(3091$);

3091$         ASSIGN:        Separate 46.NumberOut Orig=Separate 46.NumberOut Orig + 1:NEXT(385$);

3092$         ASSIGN:        Separate 46.NumberOut Dup=Separate 46.NumberOut Dup + 1:NEXT(385$);


;
;
;     Model statements for module:  Process 51
;
385$          ASSIGN:        Process 51.NumberIn=Process 51.NumberIn + 1:
                             Process 51.WIP=Process 51.WIP+1;
3122$         STACK,         1:Save:NEXT(3096$);

3096$         QUEUE,         Process 51.Queue;
3095$         SEIZE,         2,VA:
                             Resource 39,1:NEXT(3094$);

3094$         DELAY:         HoursToBaseTime(expo(14/receiptb2# c4,22)),,VA:NEXT(3137$);

3137$         ASSIGN:        Process 51.WaitTime=Process 51.WaitTime + Diff.WaitTime;
3101$         TALLY:         Process 51.WaitTimePerEntity,Diff.WaitTime,1;
3103$         TALLY:         Process 51.TotalTimePerEntity,Diff.StartTime,1;
3127$         ASSIGN:        Process 51.VATime=Process 51.VATime + Diff.VATime;
3128$         TALLY:         Process 51.VATimePerEntity,Diff.VATime,1;
3093$         RELEASE:       Resource 39,1;
3142$         STACK,         1:Destroy:NEXT(3141$);

3141$         ASSIGN:        Process 51.NumberOut=Process 51.NumberOut + 1:
                             Process 51.WIP=Process 51.WIP-1:NEXT(366$);


;
;
;     Model statements for module:  Create 61
;

3144$         CREATE,        1,MinutesToBaseTime(0.0001),Entity rc1rec# c4:MinutesToBaseTime(1440):NEXT(3145$);

3145$         ASSIGN:        Create for receiving c shift1 c4.NumberOut=Create for receiving c shift1 c4.NumberOut + 1
                             :NEXT(387$);


;
;
;     Model statements for module:  Decide 178
;
387$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),3148$,Yes:
                             Else,3149$,Yes;
3148$         ASSIGN:        Decide 178.NumberOut True=Decide 178.NumberOut True + 1:NEXT(388$);

3149$         ASSIGN:        Decide 178.NumberOut False=Decide 178.NumberOut False + 1:NEXT(389$);


;
;
;     Model statements for module:  Assign 137
;
388$          ASSIGN:        receiptc1# c4=disc(0.848,0,0.859,1,0.880,2,0.902,3,0.935,4,0.962,5,0.973,6,0.989,7,0.995,8,1,10,87)
                             :NEXT(390$);


;
;
;     Model statements for module:  Decide 179
;
390$          BRANCH,        1:
                             If,receiptc1# c4==0,370$,Yes:
                             If,receiptc1# c4==1,391$,Yes:
                             Else,392$,Yes;

;
;
;     Model statements for module:  Separate 47
;
392$          DUPLICATE,     100 - 50:
                             receiptc1# c4-1,3154$,50:NEXT(3153$);

3153$         ASSIGN:        Separate 47.NumberOut Orig=Separate 47.NumberOut Orig + 1:NEXT(391$);

3154$         ASSIGN:        Separate 47.NumberOut Dup=Separate 47.NumberOut Dup + 1:NEXT(391$);


;
;
;     Model statements for module:  Process 52
;
391$          ASSIGN:        Process 52.NumberIn=Process 52.NumberIn + 1:
                             Process 52.WIP=Process 52.WIP+1;
3184$         STACK,         1:Save:NEXT(3158$);

3158$         QUEUE,         Process 52.Queue;
3157$         SEIZE,         2,VA:
                             Resource 40,1:NEXT(3156$);

3156$         DELAY:         HoursToBaseTime(expo(10/receiptc1# c4,23)),,VA:NEXT(3199$);

3199$         ASSIGN:        Process 52.WaitTime=Process 52.WaitTime + Diff.WaitTime;
3163$         TALLY:         Process 52.WaitTimePerEntity,Diff.WaitTime,1;
3165$         TALLY:         Process 52.TotalTimePerEntity,Diff.StartTime,1;
3189$         ASSIGN:        Process 52.VATime=Process 52.VATime + Diff.VATime;
3190$         TALLY:         Process 52.VATimePerEntity,Diff.VATime,1;
3155$         RELEASE:       Resource 40,1;
3204$         STACK,         1:Destroy:NEXT(3203$);

3203$         ASSIGN:        Process 52.NumberOut=Process 52.NumberOut + 1:
                             Process 52.WIP=Process 52.WIP-1:NEXT(367$);


;
;
;     Model statements for module:  Assign 132
;
367$          ASSIGN:        producttype=3:NEXT(180$);


;
;
;     Model statements for module:  Assign 138
;
389$          ASSIGN:        receiptc2# c4=disc(0.848,0,0.864,1,0.875,2,0.913,3,0.946,4,0.973,5,0.989,6,0.995,8,1,10,88)
                             :NEXT(393$);


;
;
;     Model statements for module:  Decide 180
;
393$          BRANCH,        1:
                             If,receiptc2# c4==0,370$,Yes:
                             If,receiptc2# c4==1,394$,Yes:
                             Else,395$,Yes;

;
;
;     Model statements for module:  Separate 48
;
395$          DUPLICATE,     100 - 50:
                             receiptc2# c4-1,3210$,50:NEXT(3209$);

3209$         ASSIGN:        Separate 48.NumberOut Orig=Separate 48.NumberOut Orig + 1:NEXT(394$);

3210$         ASSIGN:        Separate 48.NumberOut Dup=Separate 48.NumberOut Dup + 1:NEXT(394$);


;
;
;     Model statements for module:  Process 53
;
394$          ASSIGN:        Process 53.NumberIn=Process 53.NumberIn + 1:
                             Process 53.WIP=Process 53.WIP+1;
3240$         STACK,         1:Save:NEXT(3214$);

3214$         QUEUE,         Process 53.Queue;
3213$         SEIZE,         2,VA:
                             Resource 41,1:NEXT(3212$);

3212$         DELAY:         HoursToBaseTime(expo(14/receiptc2# c4,24)),,VA:NEXT(3255$);

3255$         ASSIGN:        Process 53.WaitTime=Process 53.WaitTime + Diff.WaitTime;
3219$         TALLY:         Process 53.WaitTimePerEntity,Diff.WaitTime,1;
3221$         TALLY:         Process 53.TotalTimePerEntity,Diff.StartTime,1;
3245$         ASSIGN:        Process 53.VATime=Process 53.VATime + Diff.VATime;
3246$         TALLY:         Process 53.VATimePerEntity,Diff.VATime,1;
3211$         RELEASE:       Resource 41,1;
3260$         STACK,         1:Destroy:NEXT(3259$);

3259$         ASSIGN:        Process 53.NumberOut=Process 53.NumberOut + 1:
                             Process 53.WIP=Process 53.WIP-1:NEXT(367$);


;
;
;     Model statements for module:  Create 63
;

3262$         CREATE,        1,MinutesToBaseTime(600.0001),Entity ra2rec# c4:MinutesToBaseTime(1440):NEXT(3263$);

3263$         ASSIGN:        Create for receiving a shift2 c4.NumberOut=Create for receiving a shift2 c4.NumberOut + 1
                             :NEXT(373$);


;
;
;     Model statements for module:  Decide 173
;
373$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),3266$,Yes:
                             Else,3267$,Yes;
3266$         ASSIGN:        Decide 173.NumberOut True=Decide 173.NumberOut True + 1:NEXT(368$);

3267$         ASSIGN:        Decide 173.NumberOut False=Decide 173.NumberOut False + 1:NEXT(374$);


;
;
;     Model statements for module:  Assign 133
;
368$          ASSIGN:        receipta1# c4=
                             disc(0.772,0,0.777,2,0.788,4,0.810,5,0.821,6,0.832,7,0.870,8,0.886,9,0.891,10,0.908,11,0.924,12,0.935,13,0.946,14,0.951,16,0.962,17,0.973,18,0.978,22,0.984,23,0.995,27,1,32,83)
                             :NEXT(369$);


;
;
;     Model statements for module:  Decide 172
;
369$          BRANCH,        1:
                             If,receipta1# c4==0,370$,Yes:
                             If,receipta1# c4==1,371$,Yes:
                             Else,372$,Yes;

;
;
;     Model statements for module:  Separate 43
;
372$          DUPLICATE,     100 - 50:
                             receipta1# c4-1,3272$,50:NEXT(3271$);

3271$         ASSIGN:        Separate 43.NumberOut Orig=Separate 43.NumberOut Orig + 1:NEXT(371$);

3272$         ASSIGN:        Separate 43.NumberOut Dup=Separate 43.NumberOut Dup + 1:NEXT(371$);


;
;
;     Model statements for module:  Process 48
;
371$          ASSIGN:        Process 48.NumberIn=Process 48.NumberIn + 1:
                             Process 48.WIP=Process 48.WIP+1;
3302$         STACK,         1:Save:NEXT(3276$);

3276$         QUEUE,         Process 48.Queue;
3275$         SEIZE,         2,VA:
                             Resource 36,1:NEXT(3274$);

3274$         DELAY:         HoursToBaseTime(expo(10/receipta1# c4,19)),,VA:NEXT(3317$);

3317$         ASSIGN:        Process 48.WaitTime=Process 48.WaitTime + Diff.WaitTime;
3281$         TALLY:         Process 48.WaitTimePerEntity,Diff.WaitTime,1;
3283$         TALLY:         Process 48.TotalTimePerEntity,Diff.StartTime,1;
3307$         ASSIGN:        Process 48.VATime=Process 48.VATime + Diff.VATime;
3308$         TALLY:         Process 48.VATimePerEntity,Diff.VATime,1;
3273$         RELEASE:       Resource 36,1;
3322$         STACK,         1:Destroy:NEXT(3321$);

3321$         ASSIGN:        Process 48.NumberOut=Process 48.NumberOut + 1:
                             Process 48.WIP=Process 48.WIP-1:NEXT(365$);


;
;
;     Model statements for module:  Assign 130
;
365$          ASSIGN:        producttype=1:NEXT(180$);


;
;
;     Model statements for module:  Assign 134
;
374$          ASSIGN:        receipta2# c4=
                             disc(0.810,0,0.821,1,0.832,2,0.848,4,0.853,5,0.864,6,0.880,7,0.886,8,0.891,9,0.902,10,0.913,11,0.918,12,0.924,13,0.929,14,0.940,15,0.946,16,0.962,18,0.973,20,0.978,23,0.984,26,0.989,28,0.995,29,1,36,84)
                             :NEXT(375$);


;
;
;     Model statements for module:  Decide 174
;
375$          BRANCH,        1:
                             If,receipta2# c4==0,370$,Yes:
                             If,receipta2# c4==1,377$,Yes:
                             Else,376$,Yes;

;
;
;     Model statements for module:  Separate 44
;
376$          DUPLICATE,     100 - 50:
                             receipta2# c4-1,3328$,50:NEXT(3327$);

3327$         ASSIGN:        Separate 44.NumberOut Orig=Separate 44.NumberOut Orig + 1:NEXT(377$);

3328$         ASSIGN:        Separate 44.NumberOut Dup=Separate 44.NumberOut Dup + 1:NEXT(377$);


;
;
;     Model statements for module:  Process 49
;
377$          ASSIGN:        Process 49.NumberIn=Process 49.NumberIn + 1:
                             Process 49.WIP=Process 49.WIP+1;
3358$         STACK,         1:Save:NEXT(3332$);

3332$         QUEUE,         Process 49.Queue;
3331$         SEIZE,         2,VA:
                             Resource 37,1:NEXT(3330$);

3330$         DELAY:         HoursToBaseTime(expo(14/receipta2# c4,20)),,VA:NEXT(3373$);

3373$         ASSIGN:        Process 49.WaitTime=Process 49.WaitTime + Diff.WaitTime;
3337$         TALLY:         Process 49.WaitTimePerEntity,Diff.WaitTime,1;
3339$         TALLY:         Process 49.TotalTimePerEntity,Diff.StartTime,1;
3363$         ASSIGN:        Process 49.VATime=Process 49.VATime + Diff.VATime;
3364$         TALLY:         Process 49.VATimePerEntity,Diff.VATime,1;
3329$         RELEASE:       Resource 37,1;
3378$         STACK,         1:Destroy:NEXT(3377$);

3377$         ASSIGN:        Process 49.NumberOut=Process 49.NumberOut + 1:
                             Process 49.WIP=Process 49.WIP-1:NEXT(365$);


;
;
;     Model statements for module:  Create 64
;

3380$         CREATE,        1,MinutesToBaseTime(600.0001),Entity rb2rec# c4:MinutesToBaseTime(1440):NEXT(3381$);

3381$         ASSIGN:        Create for receiving b shift2 c4.NumberOut=Create for receiving b shift2 c4.NumberOut + 1
                             :NEXT(378$);


;
;
;     Model statements for module:  Create 65
;

3384$         CREATE,        1,MinutesToBaseTime(600.0001),Entity rc2rec# c4:MinutesToBaseTime(1440):NEXT(3385$);

3385$         ASSIGN:        Create for receiving c shift2 c4.NumberOut=Create for receiving c shift2 c4.NumberOut + 1
                             :NEXT(387$);


;
;
;     Model statements for module:  Create 69
;

3388$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sb1ship# c4:MinutesToBaseTime(1440):NEXT(3389$);

3389$         ASSIGN:        Create for shipment b shift1 c4.NumberOut=Create for shipment b shift1 c4.NumberOut + 1:NEXT(409$);


;
;
;     Model statements for module:  Decide 184
;
409$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),3392$,Yes:
                             Else,3393$,Yes;
3392$         ASSIGN:        Decide 184.NumberOut True=Decide 184.NumberOut True + 1:NEXT(410$);

3393$         ASSIGN:        Decide 184.NumberOut False=Decide 184.NumberOut False + 1:NEXT(411$);


;
;
;     Model statements for module:  Assign 144
;
410$          ASSIGN:        departureb1# c4=disc(0.674,0,0.717,1,0.783,2,0.810,3,0.918,4,0.973,5,1,6,115):NEXT(412$);


;
;
;     Model statements for module:  Decide 185
;
412$          BRANCH,        1:
                             If,departureb1# c4==0,403$,Yes:
                             If,departureb1# c4==1,413$,Yes:
                             Else,414$,Yes;

;
;
;     Model statements for module:  Separate 51
;
414$          DUPLICATE,     100 - 50:
                             departureb1# c4-1,3398$,50:NEXT(3397$);

3397$         ASSIGN:        Separate 51.NumberOut Orig=Separate 51.NumberOut Orig + 1:NEXT(413$);

3398$         ASSIGN:        Separate 51.NumberOut Dup=Separate 51.NumberOut Dup + 1:NEXT(413$);


;
;
;     Model statements for module:  Process 56
;
413$          ASSIGN:        Process 56.NumberIn=Process 56.NumberIn + 1:
                             Process 56.WIP=Process 56.WIP+1;
3428$         STACK,         1:Save:NEXT(3402$);

3402$         QUEUE,         Process 56.Queue;
3401$         SEIZE,         2,VA:
                             Resource 44,1:NEXT(3400$);

3400$         DELAY:         HoursToBaseTime(expo(10/departureb1# c4,51)),,VA:NEXT(3443$);

3443$         ASSIGN:        Process 56.WaitTime=Process 56.WaitTime + Diff.WaitTime;
3407$         TALLY:         Process 56.WaitTimePerEntity,Diff.WaitTime,1;
3409$         TALLY:         Process 56.TotalTimePerEntity,Diff.StartTime,1;
3433$         ASSIGN:        Process 56.VATime=Process 56.VATime + Diff.VATime;
3434$         TALLY:         Process 56.VATimePerEntity,Diff.VATime,1;
3399$         RELEASE:       Resource 44,1;
3448$         STACK,         1:Destroy:NEXT(3447$);

3447$         ASSIGN:        Process 56.NumberOut=Process 56.NumberOut + 1:
                             Process 56.WIP=Process 56.WIP-1:NEXT(397$);


;
;
;     Model statements for module:  Assign 140
;
397$          ASSIGN:        type=2:NEXT(158$);


;
;
;     Model statements for module:  Dispose 28
;
403$          ASSIGN:        Dispose 28.NumberOut=Dispose 28.NumberOut + 1;
3450$         DISPOSE:       Yes;


;
;
;     Model statements for module:  Assign 145
;
411$          ASSIGN:        departureb2# c4=disc(0.663,0,0.707,1,0.761,2,0.853,3,0.891,4,0.946,5,0.973,6,0.995,7,1,9,116)
                             :NEXT(415$);


;
;
;     Model statements for module:  Decide 186
;
415$          BRANCH,        1:
                             If,departureb2# c4==0,403$,Yes:
                             If,departureb2# c4==1,416$,Yes:
                             Else,417$,Yes;

;
;
;     Model statements for module:  Separate 52
;
417$          DUPLICATE,     100 - 50:
                             departureb2# c4-1,3455$,50:NEXT(3454$);

3454$         ASSIGN:        Separate 52.NumberOut Orig=Separate 52.NumberOut Orig + 1:NEXT(416$);

3455$         ASSIGN:        Separate 52.NumberOut Dup=Separate 52.NumberOut Dup + 1:NEXT(416$);


;
;
;     Model statements for module:  Process 57
;
416$          ASSIGN:        Process 57.NumberIn=Process 57.NumberIn + 1:
                             Process 57.WIP=Process 57.WIP+1;
3485$         STACK,         1:Save:NEXT(3459$);

3459$         QUEUE,         Process 57.Queue;
3458$         SEIZE,         2,VA:
                             Resource 45,1:NEXT(3457$);

3457$         DELAY:         HoursToBaseTime(expo(14/departureb2# c4,52)),,VA:NEXT(3500$);

3500$         ASSIGN:        Process 57.WaitTime=Process 57.WaitTime + Diff.WaitTime;
3464$         TALLY:         Process 57.WaitTimePerEntity,Diff.WaitTime,1;
3466$         TALLY:         Process 57.TotalTimePerEntity,Diff.StartTime,1;
3490$         ASSIGN:        Process 57.VATime=Process 57.VATime + Diff.VATime;
3491$         TALLY:         Process 57.VATimePerEntity,Diff.VATime,1;
3456$         RELEASE:       Resource 45,1;
3505$         STACK,         1:Destroy:NEXT(3504$);

3504$         ASSIGN:        Process 57.NumberOut=Process 57.NumberOut + 1:
                             Process 57.WIP=Process 57.WIP-1:NEXT(397$);


;
;
;     Model statements for module:  Create 70
;

3507$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sc1ship# c4:MinutesToBaseTime(1440):NEXT(3508$);

3508$         ASSIGN:        Create for shipment c shift1 c4.NumberOut=Create for shipment c shift1 c4.NumberOut + 1:NEXT(418$);


;
;
;     Model statements for module:  Decide 187
;
418$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),3511$,Yes:
                             Else,3512$,Yes;
3511$         ASSIGN:        Decide 187.NumberOut True=Decide 187.NumberOut True + 1:NEXT(419$);

3512$         ASSIGN:        Decide 187.NumberOut False=Decide 187.NumberOut False + 1:NEXT(420$);


;
;
;     Model statements for module:  Assign 146
;
419$          ASSIGN:        departurec1# c4=disc(0.842,0,0.891,1,0.924,2,0.935,3,0.962,4,0.978,5,0.995,6,1,7,117):NEXT(421$);


;
;
;     Model statements for module:  Decide 188
;
421$          BRANCH,        1:
                             If,departurec1# c4==0,403$,Yes:
                             If,departurec1# c4==1,422$,Yes:
                             Else,423$,Yes;

;
;
;     Model statements for module:  Separate 53
;
423$          DUPLICATE,     100 - 50:
                             departurec1# c4-1,3517$,50:NEXT(3516$);

3516$         ASSIGN:        Separate 53.NumberOut Orig=Separate 53.NumberOut Orig + 1:NEXT(422$);

3517$         ASSIGN:        Separate 53.NumberOut Dup=Separate 53.NumberOut Dup + 1:NEXT(422$);


;
;
;     Model statements for module:  Process 58
;
422$          ASSIGN:        Process 58.NumberIn=Process 58.NumberIn + 1:
                             Process 58.WIP=Process 58.WIP+1;
3547$         STACK,         1:Save:NEXT(3521$);

3521$         QUEUE,         Process 58.Queue;
3520$         SEIZE,         2,VA:
                             Resource 46,1:NEXT(3519$);

3519$         DELAY:         HoursToBaseTime(expo(10/departurec1# c4,53)),,VA:NEXT(3562$);

3562$         ASSIGN:        Process 58.WaitTime=Process 58.WaitTime + Diff.WaitTime;
3526$         TALLY:         Process 58.WaitTimePerEntity,Diff.WaitTime,1;
3528$         TALLY:         Process 58.TotalTimePerEntity,Diff.StartTime,1;
3552$         ASSIGN:        Process 58.VATime=Process 58.VATime + Diff.VATime;
3553$         TALLY:         Process 58.VATimePerEntity,Diff.VATime,1;
3518$         RELEASE:       Resource 46,1;
3567$         STACK,         1:Destroy:NEXT(3566$);

3566$         ASSIGN:        Process 58.NumberOut=Process 58.NumberOut + 1:
                             Process 58.WIP=Process 58.WIP-1:NEXT(398$);


;
;
;     Model statements for module:  Assign 141
;
398$          ASSIGN:        type=3:NEXT(158$);


;
;
;     Model statements for module:  Assign 147
;
420$          ASSIGN:        departurec2# c4=disc(0.723,0,0.804,1,0.870,2,0.908,3,0.940,4,0.989,5,1,6,118):NEXT(424$);


;
;
;     Model statements for module:  Decide 189
;
424$          BRANCH,        1:
                             If,departurec2# c4==0,403$,Yes:
                             If,departurec2# c4==1,425$,Yes:
                             Else,426$,Yes;

;
;
;     Model statements for module:  Separate 54
;
426$          DUPLICATE,     100 - 50:
                             departurec2# c4-1,3573$,50:NEXT(3572$);

3572$         ASSIGN:        Separate 54.NumberOut Orig=Separate 54.NumberOut Orig + 1:NEXT(425$);

3573$         ASSIGN:        Separate 54.NumberOut Dup=Separate 54.NumberOut Dup + 1:NEXT(425$);


;
;
;     Model statements for module:  Process 59
;
425$          ASSIGN:        Process 59.NumberIn=Process 59.NumberIn + 1:
                             Process 59.WIP=Process 59.WIP+1;
3603$         STACK,         1:Save:NEXT(3577$);

3577$         QUEUE,         Process 59.Queue;
3576$         SEIZE,         2,VA:
                             Resource 47,1:NEXT(3575$);

3575$         DELAY:         HoursToBaseTime(expo(14/departurec2# c4,54)),,VA:NEXT(3618$);

3618$         ASSIGN:        Process 59.WaitTime=Process 59.WaitTime + Diff.WaitTime;
3582$         TALLY:         Process 59.WaitTimePerEntity,Diff.WaitTime,1;
3584$         TALLY:         Process 59.TotalTimePerEntity,Diff.StartTime,1;
3608$         ASSIGN:        Process 59.VATime=Process 59.VATime + Diff.VATime;
3609$         TALLY:         Process 59.VATimePerEntity,Diff.VATime,1;
3574$         RELEASE:       Resource 47,1;
3623$         STACK,         1:Destroy:NEXT(3622$);

3622$         ASSIGN:        Process 59.NumberOut=Process 59.NumberOut + 1:
                             Process 59.WIP=Process 59.WIP-1:NEXT(398$);


;
;
;     Model statements for module:  Create 72
;

3625$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sa2ship# c4:MinutesToBaseTime(1440):NEXT(3626$);

3626$         ASSIGN:        Create for shipmenta shift2 c4.NumberOut=Create for shipmenta shift2 c4.NumberOut + 1:NEXT(400$);


;
;
;     Model statements for module:  Decide 181
;
400$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),3629$,Yes:
                             Else,3630$,Yes;
3629$         ASSIGN:        Decide 181.NumberOut True=Decide 181.NumberOut True + 1:NEXT(399$);

3630$         ASSIGN:        Decide 181.NumberOut False=Decide 181.NumberOut False + 1:NEXT(401$);


;
;
;     Model statements for module:  Assign 142
;
399$          ASSIGN:        departurea1# c4=
                             disc(0.332,0,0.386,1,0.5,2,0.707,3,0.859,4,0.946,5,0.984,6,0.989,7,0.995,8,1,10,113):NEXT(402$);


;
;
;     Model statements for module:  Decide 182
;
402$          BRANCH,        1:
                             If,departurea1# c4==0,403$,Yes:
                             If,departurea1# c4==1,404$,Yes:
                             Else,405$,Yes;

;
;
;     Model statements for module:  Separate 49
;
405$          DUPLICATE,     100 - 50:
                             departurea1# c4-1,3635$,50:NEXT(3634$);

3634$         ASSIGN:        Separate 49.NumberOut Orig=Separate 49.NumberOut Orig + 1:NEXT(404$);

3635$         ASSIGN:        Separate 49.NumberOut Dup=Separate 49.NumberOut Dup + 1:NEXT(404$);


;
;
;     Model statements for module:  Process 54
;
404$          ASSIGN:        Process 54.NumberIn=Process 54.NumberIn + 1:
                             Process 54.WIP=Process 54.WIP+1;
3665$         STACK,         1:Save:NEXT(3639$);

3639$         QUEUE,         Process 54.Queue;
3638$         SEIZE,         2,VA:
                             Resource 42,1:NEXT(3637$);

3637$         DELAY:         HoursToBaseTime(expo(10/departurea1# c4,49)),,VA:NEXT(3680$);

3680$         ASSIGN:        Process 54.WaitTime=Process 54.WaitTime + Diff.WaitTime;
3644$         TALLY:         Process 54.WaitTimePerEntity,Diff.WaitTime,1;
3646$         TALLY:         Process 54.TotalTimePerEntity,Diff.StartTime,1;
3670$         ASSIGN:        Process 54.VATime=Process 54.VATime + Diff.VATime;
3671$         TALLY:         Process 54.VATimePerEntity,Diff.VATime,1;
3636$         RELEASE:       Resource 42,1;
3685$         STACK,         1:Destroy:NEXT(3684$);

3684$         ASSIGN:        Process 54.NumberOut=Process 54.NumberOut + 1:
                             Process 54.WIP=Process 54.WIP-1:NEXT(396$);


;
;
;     Model statements for module:  Assign 139
;
396$          ASSIGN:        type=1:NEXT(158$);


;
;
;     Model statements for module:  Assign 143
;
401$          ASSIGN:        departurea2# c4=disc(0.315,0,0.408,1,0.505,2,0.685,3,0.837,4,0.929,5,0.989,6,1,7,114):NEXT(406$);


;
;
;     Model statements for module:  Decide 183
;
406$          BRANCH,        1:
                             If,departurea2# c4==0,403$,Yes:
                             If,departurea2# c4==1,408$,Yes:
                             Else,407$,Yes;

;
;
;     Model statements for module:  Separate 50
;
407$          DUPLICATE,     100 - 50:
                             departurea2# c4-1,3691$,50:NEXT(3690$);

3690$         ASSIGN:        Separate 50.NumberOut Orig=Separate 50.NumberOut Orig + 1:NEXT(408$);

3691$         ASSIGN:        Separate 50.NumberOut Dup=Separate 50.NumberOut Dup + 1:NEXT(408$);


;
;
;     Model statements for module:  Process 55
;
408$          ASSIGN:        Process 55.NumberIn=Process 55.NumberIn + 1:
                             Process 55.WIP=Process 55.WIP+1;
3721$         STACK,         1:Save:NEXT(3695$);

3695$         QUEUE,         Process 55.Queue;
3694$         SEIZE,         2,VA:
                             Resource 43,1:NEXT(3693$);

3693$         DELAY:         HoursToBaseTime(expo(14/departurea2# c4,50)),,VA:NEXT(3736$);

3736$         ASSIGN:        Process 55.WaitTime=Process 55.WaitTime + Diff.WaitTime;
3700$         TALLY:         Process 55.WaitTimePerEntity,Diff.WaitTime,1;
3702$         TALLY:         Process 55.TotalTimePerEntity,Diff.StartTime,1;
3726$         ASSIGN:        Process 55.VATime=Process 55.VATime + Diff.VATime;
3727$         TALLY:         Process 55.VATimePerEntity,Diff.VATime,1;
3692$         RELEASE:       Resource 43,1;
3741$         STACK,         1:Destroy:NEXT(3740$);

3740$         ASSIGN:        Process 55.NumberOut=Process 55.NumberOut + 1:
                             Process 55.WIP=Process 55.WIP-1:NEXT(396$);


;
;
;     Model statements for module:  Create 73
;

3743$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sb2ship# c4:MinutesToBaseTime(1440):NEXT(3744$);

3744$         ASSIGN:        Create for shipment b shift2 c4.NumberOut=Create for shipment b shift2 c4.NumberOut + 1:NEXT(409$);


;
;
;     Model statements for module:  Create 84
;

3747$         CREATE,        1,MinutesToBaseTime(0.0001),Entity rb1rec# c5:MinutesToBaseTime(1440):NEXT(3748$);

3748$         ASSIGN:        Create for receiving b shift1 c5.NumberOut=Create for receiving b shift1 c5.NumberOut + 1
                             :NEXT(440$);


;
;
;     Model statements for module:  Decide 202
;
440$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),3751$,Yes:
                             Else,3752$,Yes;
3751$         ASSIGN:        Decide 202.NumberOut True=Decide 202.NumberOut True + 1:NEXT(441$);

3752$         ASSIGN:        Decide 202.NumberOut False=Decide 202.NumberOut False + 1:NEXT(442$);


;
;
;     Model statements for module:  Assign 162
;
441$          ASSIGN:        receiptb1# c5=
                             disc(0.924,0,0.929,1,0.940,2,0.946,6,0.951,8,0.962,9,0.973,15,0.978,16,0.984,17,0.989,18,0.995,19,1,21,91)
                             :NEXT(443$);


;
;
;     Model statements for module:  Decide 203
;
443$          BRANCH,        1:
                             If,receiptb1# c5==0,432$,Yes:
                             If,receiptb1# c5==1,444$,Yes:
                             Else,445$,Yes;

;
;
;     Model statements for module:  Separate 63
;
445$          DUPLICATE,     100 - 50:
                             receiptb1# c5-1,3757$,50:NEXT(3756$);

3756$         ASSIGN:        Separate 63.NumberOut Orig=Separate 63.NumberOut Orig + 1:NEXT(444$);

3757$         ASSIGN:        Separate 63.NumberOut Dup=Separate 63.NumberOut Dup + 1:NEXT(444$);


;
;
;     Model statements for module:  Process 68
;
444$          ASSIGN:        Process 68.NumberIn=Process 68.NumberIn + 1:
                             Process 68.WIP=Process 68.WIP+1;
3787$         STACK,         1:Save:NEXT(3761$);

3761$         QUEUE,         Process 68.Queue;
3760$         SEIZE,         2,VA:
                             Resource 50,1:NEXT(3759$);

3759$         DELAY:         HoursToBaseTime(expo(10/receiptb1# c5,27)),,VA:NEXT(3802$);

3802$         ASSIGN:        Process 68.WaitTime=Process 68.WaitTime + Diff.WaitTime;
3766$         TALLY:         Process 68.WaitTimePerEntity,Diff.WaitTime,1;
3768$         TALLY:         Process 68.TotalTimePerEntity,Diff.StartTime,1;
3792$         ASSIGN:        Process 68.VATime=Process 68.VATime + Diff.VATime;
3793$         TALLY:         Process 68.VATimePerEntity,Diff.VATime,1;
3758$         RELEASE:       Resource 50,1;
3807$         STACK,         1:Destroy:NEXT(3806$);

3806$         ASSIGN:        Process 68.NumberOut=Process 68.NumberOut + 1:
                             Process 68.WIP=Process 68.WIP-1:NEXT(428$);


;
;
;     Model statements for module:  Assign 158
;
428$          ASSIGN:        producttype=2:NEXT(180$);


;
;
;     Model statements for module:  Dispose 30
;
432$          ASSIGN:        Dispose 30.NumberOut=Dispose 30.NumberOut + 1;
3809$         DISPOSE:       Yes;


;
;
;     Model statements for module:  Assign 163
;
442$          ASSIGN:        receiptb2# c5=
                             disc(0.929,0,0.935,1,0.946,7,0.957,8,0.967,12,0.973,15,0.978,17,0.984,19,0.989,21,0.995,27,1,28,92)
                             :NEXT(446$);


;
;
;     Model statements for module:  Decide 204
;
446$          BRANCH,        1:
                             If,receiptb2# c5==0,432$,Yes:
                             If,receiptb2# c5==1,447$,Yes:
                             Else,448$,Yes;

;
;
;     Model statements for module:  Separate 64
;
448$          DUPLICATE,     100 - 50:
                             receiptb2# c5-1,3814$,50:NEXT(3813$);

3813$         ASSIGN:        Separate 64.NumberOut Orig=Separate 64.NumberOut Orig + 1:NEXT(447$);

3814$         ASSIGN:        Separate 64.NumberOut Dup=Separate 64.NumberOut Dup + 1:NEXT(447$);


;
;
;     Model statements for module:  Process 69
;
447$          ASSIGN:        Process 69.NumberIn=Process 69.NumberIn + 1:
                             Process 69.WIP=Process 69.WIP+1;
3844$         STACK,         1:Save:NEXT(3818$);

3818$         QUEUE,         Process 69.Queue;
3817$         SEIZE,         2,VA:
                             Resource 51,1:NEXT(3816$);

3816$         DELAY:         HoursToBaseTime(expo(14/receiptb2# c5,28)),,VA:NEXT(3859$);

3859$         ASSIGN:        Process 69.WaitTime=Process 69.WaitTime + Diff.WaitTime;
3823$         TALLY:         Process 69.WaitTimePerEntity,Diff.WaitTime,1;
3825$         TALLY:         Process 69.TotalTimePerEntity,Diff.StartTime,1;
3849$         ASSIGN:        Process 69.VATime=Process 69.VATime + Diff.VATime;
3850$         TALLY:         Process 69.VATimePerEntity,Diff.VATime,1;
3815$         RELEASE:       Resource 51,1;
3864$         STACK,         1:Destroy:NEXT(3863$);

3863$         ASSIGN:        Process 69.NumberOut=Process 69.NumberOut + 1:
                             Process 69.WIP=Process 69.WIP-1:NEXT(428$);


;
;
;     Model statements for module:  Create 85
;

3866$         CREATE,        1,MinutesToBaseTime(0.0001),Entity rc1rec# c5:MinutesToBaseTime(1440):NEXT(3867$);

3867$         ASSIGN:        Create for receiving c shift1 c5.NumberOut=Create for receiving c shift1 c5.NumberOut + 1
                             :NEXT(449$);


;
;
;     Model statements for module:  Decide 205
;
449$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),3870$,Yes:
                             Else,3871$,Yes;
3870$         ASSIGN:        Decide 205.NumberOut True=Decide 205.NumberOut True + 1:NEXT(450$);

3871$         ASSIGN:        Decide 205.NumberOut False=Decide 205.NumberOut False + 1:NEXT(451$);


;
;
;     Model statements for module:  Assign 164
;
450$          ASSIGN:        receiptc1# c5=disc(0.848,0,0.859,1,0.880,2,0.902,3,0.935,4,0.962,5,0.973,6,0.989,7,0.995,8,1,10,93)
                             :NEXT(452$);


;
;
;     Model statements for module:  Decide 206
;
452$          BRANCH,        1:
                             If,receiptc1# c5==0,432$,Yes:
                             If,receiptc1# c5==1,453$,Yes:
                             Else,454$,Yes;

;
;
;     Model statements for module:  Separate 65
;
454$          DUPLICATE,     100 - 50:
                             receiptc1# c5-1,3876$,50:NEXT(3875$);

3875$         ASSIGN:        Separate 65.NumberOut Orig=Separate 65.NumberOut Orig + 1:NEXT(453$);

3876$         ASSIGN:        Separate 65.NumberOut Dup=Separate 65.NumberOut Dup + 1:NEXT(453$);


;
;
;     Model statements for module:  Process 70
;
453$          ASSIGN:        Process 70.NumberIn=Process 70.NumberIn + 1:
                             Process 70.WIP=Process 70.WIP+1;
3906$         STACK,         1:Save:NEXT(3880$);

3880$         QUEUE,         Process 70.Queue;
3879$         SEIZE,         2,VA:
                             Resource 52,1:NEXT(3878$);

3878$         DELAY:         HoursToBaseTime(expo(10/receiptc1# c5,29)),,VA:NEXT(3921$);

3921$         ASSIGN:        Process 70.WaitTime=Process 70.WaitTime + Diff.WaitTime;
3885$         TALLY:         Process 70.WaitTimePerEntity,Diff.WaitTime,1;
3887$         TALLY:         Process 70.TotalTimePerEntity,Diff.StartTime,1;
3911$         ASSIGN:        Process 70.VATime=Process 70.VATime + Diff.VATime;
3912$         TALLY:         Process 70.VATimePerEntity,Diff.VATime,1;
3877$         RELEASE:       Resource 52,1;
3926$         STACK,         1:Destroy:NEXT(3925$);

3925$         ASSIGN:        Process 70.NumberOut=Process 70.NumberOut + 1:
                             Process 70.WIP=Process 70.WIP-1:NEXT(429$);


;
;
;     Model statements for module:  Assign 159
;
429$          ASSIGN:        producttype=3:NEXT(180$);


;
;
;     Model statements for module:  Assign 165
;
451$          ASSIGN:        receiptc2# c5=disc(0.848,0,0.864,1,0.875,2,0.913,3,0.946,4,0.973,5,0.989,6,0.995,8,1,10,94)
                             :NEXT(455$);


;
;
;     Model statements for module:  Decide 207
;
455$          BRANCH,        1:
                             If,receiptc2# c5==0,432$,Yes:
                             If,receiptc2# c5==1,456$,Yes:
                             Else,457$,Yes;

;
;
;     Model statements for module:  Separate 66
;
457$          DUPLICATE,     100 - 50:
                             receiptc2# c5-1,3932$,50:NEXT(3931$);

3931$         ASSIGN:        Separate 66.NumberOut Orig=Separate 66.NumberOut Orig + 1:NEXT(456$);

3932$         ASSIGN:        Separate 66.NumberOut Dup=Separate 66.NumberOut Dup + 1:NEXT(456$);


;
;
;     Model statements for module:  Process 71
;
456$          ASSIGN:        Process 71.NumberIn=Process 71.NumberIn + 1:
                             Process 71.WIP=Process 71.WIP+1;
3962$         STACK,         1:Save:NEXT(3936$);

3936$         QUEUE,         Process 71.Queue;
3935$         SEIZE,         2,VA:
                             Resource 53,1:NEXT(3934$);

3934$         DELAY:         HoursToBaseTime(expo(14/receiptc2# c5,30)),,VA:NEXT(3977$);

3977$         ASSIGN:        Process 71.WaitTime=Process 71.WaitTime + Diff.WaitTime;
3941$         TALLY:         Process 71.WaitTimePerEntity,Diff.WaitTime,1;
3943$         TALLY:         Process 71.TotalTimePerEntity,Diff.StartTime,1;
3967$         ASSIGN:        Process 71.VATime=Process 71.VATime + Diff.VATime;
3968$         TALLY:         Process 71.VATimePerEntity,Diff.VATime,1;
3933$         RELEASE:       Resource 53,1;
3982$         STACK,         1:Destroy:NEXT(3981$);

3981$         ASSIGN:        Process 71.NumberOut=Process 71.NumberOut + 1:
                             Process 71.WIP=Process 71.WIP-1:NEXT(429$);


;
;
;     Model statements for module:  Create 87
;

3984$         CREATE,        1,MinutesToBaseTime(600.0001),Entity ra2rec# c5:MinutesToBaseTime(1440):NEXT(3985$);

3985$         ASSIGN:        Create for receiving a shift2 c5.NumberOut=Create for receiving a shift2 c5.NumberOut + 1
                             :NEXT(435$);


;
;
;     Model statements for module:  Decide 200
;
435$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),3988$,Yes:
                             Else,3989$,Yes;
3988$         ASSIGN:        Decide 200.NumberOut True=Decide 200.NumberOut True + 1:NEXT(430$);

3989$         ASSIGN:        Decide 200.NumberOut False=Decide 200.NumberOut False + 1:NEXT(436$);


;
;
;     Model statements for module:  Assign 160
;
430$          ASSIGN:        receipta1# c5=
                             disc(0.772,0,0.777,2,0.788,4,0.810,5,0.821,6,0.832,7,0.870,8,0.886,9,0.891,10,0.908,11,0.924,12,0.935,13,0.946,14,0.951,16,0.962,17,0.973,18,0.978,22,0.984,23,0.995,27,1,32,89)
                             :NEXT(431$);


;
;
;     Model statements for module:  Decide 199
;
431$          BRANCH,        1:
                             If,receipta1# c5==0,432$,Yes:
                             If,receipta1# c5==1,433$,Yes:
                             Else,434$,Yes;

;
;
;     Model statements for module:  Separate 61
;
434$          DUPLICATE,     100 - 50:
                             receipta1# c5-1,3994$,50:NEXT(3993$);

3993$         ASSIGN:        Separate 61.NumberOut Orig=Separate 61.NumberOut Orig + 1:NEXT(433$);

3994$         ASSIGN:        Separate 61.NumberOut Dup=Separate 61.NumberOut Dup + 1:NEXT(433$);


;
;
;     Model statements for module:  Process 66
;
433$          ASSIGN:        Process 66.NumberIn=Process 66.NumberIn + 1:
                             Process 66.WIP=Process 66.WIP+1;
4024$         STACK,         1:Save:NEXT(3998$);

3998$         QUEUE,         Process 66.Queue;
3997$         SEIZE,         2,VA:
                             Resource 48,1:NEXT(3996$);

3996$         DELAY:         HoursToBaseTime(expo(10/receipta1# c5,25)),,VA:NEXT(4039$);

4039$         ASSIGN:        Process 66.WaitTime=Process 66.WaitTime + Diff.WaitTime;
4003$         TALLY:         Process 66.WaitTimePerEntity,Diff.WaitTime,1;
4005$         TALLY:         Process 66.TotalTimePerEntity,Diff.StartTime,1;
4029$         ASSIGN:        Process 66.VATime=Process 66.VATime + Diff.VATime;
4030$         TALLY:         Process 66.VATimePerEntity,Diff.VATime,1;
3995$         RELEASE:       Resource 48,1;
4044$         STACK,         1:Destroy:NEXT(4043$);

4043$         ASSIGN:        Process 66.NumberOut=Process 66.NumberOut + 1:
                             Process 66.WIP=Process 66.WIP-1:NEXT(427$);


;
;
;     Model statements for module:  Assign 157
;
427$          ASSIGN:        producttype=1:NEXT(180$);


;
;
;     Model statements for module:  Assign 161
;
436$          ASSIGN:        receipta2# c5=
                             disc(0.810,0,0.821,1,0.832,2,0.848,4,0.853,5,0.864,6,0.880,7,0.886,8,0.891,9,0.902,10,0.913,11,0.918,12,0.924,13,0.929,14,0.940,15,0.946,16,0.962,18,0.973,20,0.978,23,0.984,26,0.989,28,0.995,29,1,36,90)
                             :NEXT(437$);


;
;
;     Model statements for module:  Decide 201
;
437$          BRANCH,        1:
                             If,receipta2# c5==0,432$,Yes:
                             If,receipta2# c5==1,439$,Yes:
                             Else,438$,Yes;

;
;
;     Model statements for module:  Separate 62
;
438$          DUPLICATE,     100 - 50:
                             receipta2# c5-1,4050$,50:NEXT(4049$);

4049$         ASSIGN:        Separate 62.NumberOut Orig=Separate 62.NumberOut Orig + 1:NEXT(439$);

4050$         ASSIGN:        Separate 62.NumberOut Dup=Separate 62.NumberOut Dup + 1:NEXT(439$);


;
;
;     Model statements for module:  Process 67
;
439$          ASSIGN:        Process 67.NumberIn=Process 67.NumberIn + 1:
                             Process 67.WIP=Process 67.WIP+1;
4080$         STACK,         1:Save:NEXT(4054$);

4054$         QUEUE,         Process 67.Queue;
4053$         SEIZE,         2,VA:
                             Resource 49,1:NEXT(4052$);

4052$         DELAY:         HoursToBaseTime(expo(14/receipta2# c5,26)),,VA:NEXT(4095$);

4095$         ASSIGN:        Process 67.WaitTime=Process 67.WaitTime + Diff.WaitTime;
4059$         TALLY:         Process 67.WaitTimePerEntity,Diff.WaitTime,1;
4061$         TALLY:         Process 67.TotalTimePerEntity,Diff.StartTime,1;
4085$         ASSIGN:        Process 67.VATime=Process 67.VATime + Diff.VATime;
4086$         TALLY:         Process 67.VATimePerEntity,Diff.VATime,1;
4051$         RELEASE:       Resource 49,1;
4100$         STACK,         1:Destroy:NEXT(4099$);

4099$         ASSIGN:        Process 67.NumberOut=Process 67.NumberOut + 1:
                             Process 67.WIP=Process 67.WIP-1:NEXT(427$);


;
;
;     Model statements for module:  Create 88
;

4102$         CREATE,        1,MinutesToBaseTime(600.0001),Entity rb2rec# c5:MinutesToBaseTime(1440):NEXT(4103$);

4103$         ASSIGN:        Create for receiving b shift2 c5.NumberOut=Create for receiving b shift2 c5.NumberOut + 1
                             :NEXT(440$);


;
;
;     Model statements for module:  Create 89
;

4106$         CREATE,        1,MinutesToBaseTime(600.0001),Entity rc2rec# c5:MinutesToBaseTime(1440):NEXT(4107$);

4107$         ASSIGN:        Create for receiving c shift2 c5.NumberOut=Create for receiving c shift2 c5.NumberOut + 1
                             :NEXT(449$);


;
;
;     Model statements for module:  Create 93
;

4110$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sb1ship# c5:MinutesToBaseTime(1440):NEXT(4111$);

4111$         ASSIGN:        Create for shipment b shift1 c5.NumberOut=Create for shipment b shift1 c5.NumberOut + 1:NEXT(471$);


;
;
;     Model statements for module:  Decide 211
;
471$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),4114$,Yes:
                             Else,4115$,Yes;
4114$         ASSIGN:        Decide 211.NumberOut True=Decide 211.NumberOut True + 1:NEXT(472$);

4115$         ASSIGN:        Decide 211.NumberOut False=Decide 211.NumberOut False + 1:NEXT(473$);


;
;
;     Model statements for module:  Assign 171
;
472$          ASSIGN:        departureb1# c5=disc(0.674,0,0.717,1,0.783,2,0.810,3,0.918,4,0.973,5,1,6,121):NEXT(474$);


;
;
;     Model statements for module:  Decide 212
;
474$          BRANCH,        1:
                             If,departureb1# c5==0,465$,Yes:
                             If,departureb1# c5==1,475$,Yes:
                             Else,476$,Yes;

;
;
;     Model statements for module:  Separate 69
;
476$          DUPLICATE,     100 - 50:
                             departureb1# c5-1,4120$,50:NEXT(4119$);

4119$         ASSIGN:        Separate 69.NumberOut Orig=Separate 69.NumberOut Orig + 1:NEXT(475$);

4120$         ASSIGN:        Separate 69.NumberOut Dup=Separate 69.NumberOut Dup + 1:NEXT(475$);


;
;
;     Model statements for module:  Process 74
;
475$          ASSIGN:        Process 74.NumberIn=Process 74.NumberIn + 1:
                             Process 74.WIP=Process 74.WIP+1;
4150$         STACK,         1:Save:NEXT(4124$);

4124$         QUEUE,         Process 74.Queue;
4123$         SEIZE,         2,VA:
                             Resource 56,1:NEXT(4122$);

4122$         DELAY:         HoursToBaseTime(expo(10/departureb1# c5,57)),,VA:NEXT(4165$);

4165$         ASSIGN:        Process 74.WaitTime=Process 74.WaitTime + Diff.WaitTime;
4129$         TALLY:         Process 74.WaitTimePerEntity,Diff.WaitTime,1;
4131$         TALLY:         Process 74.TotalTimePerEntity,Diff.StartTime,1;
4155$         ASSIGN:        Process 74.VATime=Process 74.VATime + Diff.VATime;
4156$         TALLY:         Process 74.VATimePerEntity,Diff.VATime,1;
4121$         RELEASE:       Resource 56,1;
4170$         STACK,         1:Destroy:NEXT(4169$);

4169$         ASSIGN:        Process 74.NumberOut=Process 74.NumberOut + 1:
                             Process 74.WIP=Process 74.WIP-1:NEXT(459$);


;
;
;     Model statements for module:  Assign 167
;
459$          ASSIGN:        type=2:NEXT(158$);


;
;
;     Model statements for module:  Dispose 31
;
465$          ASSIGN:        Dispose 31.NumberOut=Dispose 31.NumberOut + 1;
4172$         DISPOSE:       Yes;


;
;
;     Model statements for module:  Assign 172
;
473$          ASSIGN:        departureb2# c5=disc(0.663,0,0.707,1,0.761,2,0.853,3,0.891,4,0.946,5,0.973,6,0.995,7,1,9,122)
                             :NEXT(477$);


;
;
;     Model statements for module:  Decide 213
;
477$          BRANCH,        1:
                             If,departureb2# c5==0,465$,Yes:
                             If,departureb2# c5==1,478$,Yes:
                             Else,479$,Yes;

;
;
;     Model statements for module:  Separate 70
;
479$          DUPLICATE,     100 - 50:
                             departureb2# c5-1,4177$,50:NEXT(4176$);

4176$         ASSIGN:        Separate 70.NumberOut Orig=Separate 70.NumberOut Orig + 1:NEXT(478$);

4177$         ASSIGN:        Separate 70.NumberOut Dup=Separate 70.NumberOut Dup + 1:NEXT(478$);


;
;
;     Model statements for module:  Process 75
;
478$          ASSIGN:        Process 75.NumberIn=Process 75.NumberIn + 1:
                             Process 75.WIP=Process 75.WIP+1;
4207$         STACK,         1:Save:NEXT(4181$);

4181$         QUEUE,         Process 75.Queue;
4180$         SEIZE,         2,VA:
                             Resource 57,1:NEXT(4179$);

4179$         DELAY:         HoursToBaseTime(expo(14/departureb2# c5,58)),,VA:NEXT(4222$);

4222$         ASSIGN:        Process 75.WaitTime=Process 75.WaitTime + Diff.WaitTime;
4186$         TALLY:         Process 75.WaitTimePerEntity,Diff.WaitTime,1;
4188$         TALLY:         Process 75.TotalTimePerEntity,Diff.StartTime,1;
4212$         ASSIGN:        Process 75.VATime=Process 75.VATime + Diff.VATime;
4213$         TALLY:         Process 75.VATimePerEntity,Diff.VATime,1;
4178$         RELEASE:       Resource 57,1;
4227$         STACK,         1:Destroy:NEXT(4226$);

4226$         ASSIGN:        Process 75.NumberOut=Process 75.NumberOut + 1:
                             Process 75.WIP=Process 75.WIP-1:NEXT(459$);


;
;
;     Model statements for module:  Create 94
;

4229$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sc1ship# c5:MinutesToBaseTime(1440):NEXT(4230$);

4230$         ASSIGN:        Create for shipment c shift1 c5.NumberOut=Create for shipment c shift1 c5.NumberOut + 1:NEXT(480$);


;
;
;     Model statements for module:  Decide 214
;
480$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),4233$,Yes:
                             Else,4234$,Yes;
4233$         ASSIGN:        Decide 214.NumberOut True=Decide 214.NumberOut True + 1:NEXT(481$);

4234$         ASSIGN:        Decide 214.NumberOut False=Decide 214.NumberOut False + 1:NEXT(482$);


;
;
;     Model statements for module:  Assign 173
;
481$          ASSIGN:        departurec1# c5=disc(0.842,0,0.891,1,0.924,2,0.935,3,0.962,4,0.978,5,0.995,6,1,7,123):NEXT(483$);


;
;
;     Model statements for module:  Decide 215
;
483$          BRANCH,        1:
                             If,departurec1# c5==0,465$,Yes:
                             If,departurec1# c5==1,484$,Yes:
                             Else,485$,Yes;

;
;
;     Model statements for module:  Separate 71
;
485$          DUPLICATE,     100 - 50:
                             departurec1# c5-1,4239$,50:NEXT(4238$);

4238$         ASSIGN:        Separate 71.NumberOut Orig=Separate 71.NumberOut Orig + 1:NEXT(484$);

4239$         ASSIGN:        Separate 71.NumberOut Dup=Separate 71.NumberOut Dup + 1:NEXT(484$);


;
;
;     Model statements for module:  Process 76
;
484$          ASSIGN:        Process 76.NumberIn=Process 76.NumberIn + 1:
                             Process 76.WIP=Process 76.WIP+1;
4269$         STACK,         1:Save:NEXT(4243$);

4243$         QUEUE,         Process 76.Queue;
4242$         SEIZE,         2,VA:
                             Resource 58,1:NEXT(4241$);

4241$         DELAY:         HoursToBaseTime(expo(10/departurec1# c5,59)),,VA:NEXT(4284$);

4284$         ASSIGN:        Process 76.WaitTime=Process 76.WaitTime + Diff.WaitTime;
4248$         TALLY:         Process 76.WaitTimePerEntity,Diff.WaitTime,1;
4250$         TALLY:         Process 76.TotalTimePerEntity,Diff.StartTime,1;
4274$         ASSIGN:        Process 76.VATime=Process 76.VATime + Diff.VATime;
4275$         TALLY:         Process 76.VATimePerEntity,Diff.VATime,1;
4240$         RELEASE:       Resource 58,1;
4289$         STACK,         1:Destroy:NEXT(4288$);

4288$         ASSIGN:        Process 76.NumberOut=Process 76.NumberOut + 1:
                             Process 76.WIP=Process 76.WIP-1:NEXT(460$);


;
;
;     Model statements for module:  Assign 168
;
460$          ASSIGN:        type=3:NEXT(158$);


;
;
;     Model statements for module:  Assign 174
;
482$          ASSIGN:        departurec2# c5=disc(0.723,0,0.804,1,0.870,2,0.908,3,0.940,4,0.989,5,1,6,124):NEXT(486$);


;
;
;     Model statements for module:  Decide 216
;
486$          BRANCH,        1:
                             If,departurec2# c5==0,465$,Yes:
                             If,departurec2# c5==1,487$,Yes:
                             Else,488$,Yes;

;
;
;     Model statements for module:  Separate 72
;
488$          DUPLICATE,     100 - 50:
                             departurec2# c5-1,4295$,50:NEXT(4294$);

4294$         ASSIGN:        Separate 72.NumberOut Orig=Separate 72.NumberOut Orig + 1:NEXT(487$);

4295$         ASSIGN:        Separate 72.NumberOut Dup=Separate 72.NumberOut Dup + 1:NEXT(487$);


;
;
;     Model statements for module:  Process 77
;
487$          ASSIGN:        Process 77.NumberIn=Process 77.NumberIn + 1:
                             Process 77.WIP=Process 77.WIP+1;
4325$         STACK,         1:Save:NEXT(4299$);

4299$         QUEUE,         Process 77.Queue;
4298$         SEIZE,         2,VA:
                             Resource 59,1:NEXT(4297$);

4297$         DELAY:         HoursToBaseTime(expo(14/departurec2# c5,60)),,VA:NEXT(4340$);

4340$         ASSIGN:        Process 77.WaitTime=Process 77.WaitTime + Diff.WaitTime;
4304$         TALLY:         Process 77.WaitTimePerEntity,Diff.WaitTime,1;
4306$         TALLY:         Process 77.TotalTimePerEntity,Diff.StartTime,1;
4330$         ASSIGN:        Process 77.VATime=Process 77.VATime + Diff.VATime;
4331$         TALLY:         Process 77.VATimePerEntity,Diff.VATime,1;
4296$         RELEASE:       Resource 59,1;
4345$         STACK,         1:Destroy:NEXT(4344$);

4344$         ASSIGN:        Process 77.NumberOut=Process 77.NumberOut + 1:
                             Process 77.WIP=Process 77.WIP-1:NEXT(460$);


;
;
;     Model statements for module:  Create 96
;

4347$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sa2ship# c5:MinutesToBaseTime(1440):NEXT(4348$);

4348$         ASSIGN:        Create for shipmenta shift2 c5.NumberOut=Create for shipmenta shift2 c5.NumberOut + 1:NEXT(462$);


;
;
;     Model statements for module:  Decide 208
;
462$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),4351$,Yes:
                             Else,4352$,Yes;
4351$         ASSIGN:        Decide 208.NumberOut True=Decide 208.NumberOut True + 1:NEXT(461$);

4352$         ASSIGN:        Decide 208.NumberOut False=Decide 208.NumberOut False + 1:NEXT(463$);


;
;
;     Model statements for module:  Assign 169
;
461$          ASSIGN:        departurea1# c5=
                             disc(0.332,0,0.386,1,0.5,2,0.707,3,0.859,4,0.946,5,0.984,6,0.989,7,0.995,8,1,10,119):NEXT(464$);


;
;
;     Model statements for module:  Decide 209
;
464$          BRANCH,        1:
                             If,departurea1# c5==0,465$,Yes:
                             If,departurea1# c5==1,466$,Yes:
                             Else,467$,Yes;

;
;
;     Model statements for module:  Separate 67
;
467$          DUPLICATE,     100 - 50:
                             departurea1# c5-1,4357$,50:NEXT(4356$);

4356$         ASSIGN:        Separate 67.NumberOut Orig=Separate 67.NumberOut Orig + 1:NEXT(466$);

4357$         ASSIGN:        Separate 67.NumberOut Dup=Separate 67.NumberOut Dup + 1:NEXT(466$);


;
;
;     Model statements for module:  Process 72
;
466$          ASSIGN:        Process 72.NumberIn=Process 72.NumberIn + 1:
                             Process 72.WIP=Process 72.WIP+1;
4387$         STACK,         1:Save:NEXT(4361$);

4361$         QUEUE,         Process 72.Queue;
4360$         SEIZE,         2,VA:
                             Resource 54,1:NEXT(4359$);

4359$         DELAY:         HoursToBaseTime(expo(10/departurea1# c5,55)),,VA:NEXT(4402$);

4402$         ASSIGN:        Process 72.WaitTime=Process 72.WaitTime + Diff.WaitTime;
4366$         TALLY:         Process 72.WaitTimePerEntity,Diff.WaitTime,1;
4368$         TALLY:         Process 72.TotalTimePerEntity,Diff.StartTime,1;
4392$         ASSIGN:        Process 72.VATime=Process 72.VATime + Diff.VATime;
4393$         TALLY:         Process 72.VATimePerEntity,Diff.VATime,1;
4358$         RELEASE:       Resource 54,1;
4407$         STACK,         1:Destroy:NEXT(4406$);

4406$         ASSIGN:        Process 72.NumberOut=Process 72.NumberOut + 1:
                             Process 72.WIP=Process 72.WIP-1:NEXT(458$);


;
;
;     Model statements for module:  Assign 166
;
458$          ASSIGN:        type=1:NEXT(158$);


;
;
;     Model statements for module:  Assign 170
;
463$          ASSIGN:        departurea2# c5=disc(0.315,0,0.408,1,0.505,2,0.685,3,0.837,4,0.929,5,0.989,6,1,7,120):NEXT(468$);


;
;
;     Model statements for module:  Decide 210
;
468$          BRANCH,        1:
                             If,departurea2# c5==0,465$,Yes:
                             If,departurea2# c5==1,470$,Yes:
                             Else,469$,Yes;

;
;
;     Model statements for module:  Separate 68
;
469$          DUPLICATE,     100 - 50:
                             departurea2# c5-1,4413$,50:NEXT(4412$);

4412$         ASSIGN:        Separate 68.NumberOut Orig=Separate 68.NumberOut Orig + 1:NEXT(470$);

4413$         ASSIGN:        Separate 68.NumberOut Dup=Separate 68.NumberOut Dup + 1:NEXT(470$);


;
;
;     Model statements for module:  Process 73
;
470$          ASSIGN:        Process 73.NumberIn=Process 73.NumberIn + 1:
                             Process 73.WIP=Process 73.WIP+1;
4443$         STACK,         1:Save:NEXT(4417$);

4417$         QUEUE,         Process 73.Queue;
4416$         SEIZE,         2,VA:
                             Resource 55,1:NEXT(4415$);

4415$         DELAY:         HoursToBaseTime(expo(14/departurea2# c5,56)),,VA:NEXT(4458$);

4458$         ASSIGN:        Process 73.WaitTime=Process 73.WaitTime + Diff.WaitTime;
4422$         TALLY:         Process 73.WaitTimePerEntity,Diff.WaitTime,1;
4424$         TALLY:         Process 73.TotalTimePerEntity,Diff.StartTime,1;
4448$         ASSIGN:        Process 73.VATime=Process 73.VATime + Diff.VATime;
4449$         TALLY:         Process 73.VATimePerEntity,Diff.VATime,1;
4414$         RELEASE:       Resource 55,1;
4463$         STACK,         1:Destroy:NEXT(4462$);

4462$         ASSIGN:        Process 73.NumberOut=Process 73.NumberOut + 1:
                             Process 73.WIP=Process 73.WIP-1:NEXT(458$);


;
;
;     Model statements for module:  Create 97
;

4465$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sb2ship# c5:MinutesToBaseTime(1440):NEXT(4466$);

4466$         ASSIGN:        Create for shipment b shift2 c5.NumberOut=Create for shipment b shift2 c5.NumberOut + 1:NEXT(471$);


;
;
;     Model statements for module:  Create 99
;

4469$         CREATE,        1,MinutesToBaseTime(0.0001),Entity ra1rec# c2:MinutesToBaseTime(1440):NEXT(4470$);

4470$         ASSIGN:        Create for receiving a shift1 c2.NumberOut=Create for receiving a shift1 c2.NumberOut + 1
                             :NEXT(240$);


;
;
;     Model statements for module:  Create 100
;

4473$         CREATE,        1,MinutesToBaseTime(0.0001),Entity ra1rec# c1:MinutesToBaseTime(1440):NEXT(4474$);

4474$         ASSIGN:        Create for receiving a shift1 c1.NumberOut=Create for receiving a shift1 c1.NumberOut + 1
                             :NEXT(100$);


;
;
;     Model statements for module:  Create 101
;

4477$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sa1ship# c1:MinutesToBaseTime(1440):NEXT(4478$);

4478$         ASSIGN:        Create for shipmenta shift1 c1.NumberOut=Create for shipmenta shift1 c1.NumberOut + 1:NEXT(105$);


;
;
;     Model statements for module:  Create 102
;

4481$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sa1ship# c2:MinutesToBaseTime(1440):NEXT(4482$);

4482$         ASSIGN:        Create for shipmenta shift1 c2.NumberOut=Create for shipmenta shift1 c2.NumberOut + 1:NEXT(266$);


;
;
;     Model statements for module:  Create 103
;

4485$         CREATE,        1,MinutesToBaseTime(0.0001),Entity ra1rec# c3:MinutesToBaseTime(1440):NEXT(4486$);

4486$         ASSIGN:        Create for receiving a shift1 c3.NumberOut=Create for receiving a shift1 c3.NumberOut + 1
                             :NEXT(311$);


;
;
;     Model statements for module:  Create 104
;

4489$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sa1ship# c3:MinutesToBaseTime(1440):NEXT(4490$);

4490$         ASSIGN:        Create for shipmenta shift1 c3.NumberOut=Create for shipmenta shift1 c3.NumberOut + 1:NEXT(338$);


;
;
;     Model statements for module:  Create 105
;

4493$         CREATE,        1,MinutesToBaseTime(0.0001),Entity ra1rec# c4:MinutesToBaseTime(1440):NEXT(4494$);

4494$         ASSIGN:        Create for receiving a shift1 c4.NumberOut=Create for receiving a shift1 c4.NumberOut + 1
                             :NEXT(373$);


;
;
;     Model statements for module:  Create 106
;

4497$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sa1ship# c4:MinutesToBaseTime(1440):NEXT(4498$);

4498$         ASSIGN:        Create for shipmenta shift1 c4.NumberOut=Create for shipmenta shift1 c4.NumberOut + 1:NEXT(400$);


;
;
;     Model statements for module:  Create 107
;

4501$         CREATE,        1,MinutesToBaseTime(0.0001),Entity ra1rec# c5:MinutesToBaseTime(1440):NEXT(4502$);

4502$         ASSIGN:        Create for receiving a shift1 c5.NumberOut=Create for receiving a shift1 c5.NumberOut + 1
                             :NEXT(435$);


;
;
;     Model statements for module:  Create 108
;

4505$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sa1ship# c5:MinutesToBaseTime(1440):NEXT(4506$);

4506$         ASSIGN:        Create for shipmenta shift1 c5.NumberOut=Create for shipmenta shift1 c5.NumberOut + 1:NEXT(462$);


;
;
;     Model statements for module:  Create 109
;

4509$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sc2ship# c1:MinutesToBaseTime(1440):NEXT(4510$);

4510$         ASSIGN:        Create for shipment c shift2 c1.NumberOut=Create for shipment c shift2 c1.NumberOut + 1:NEXT(141$);


;
;
;     Model statements for module:  Create 110
;

4513$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sc2ship# c2:MinutesToBaseTime(1440):NEXT(4514$);

4514$         ASSIGN:        Create for shipment c shift2 c2.NumberOut=Create for shipment c shift2 c2.NumberOut + 1:NEXT(284$);


;
;
;     Model statements for module:  Create 111
;

4517$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sc2ship# c3:MinutesToBaseTime(1440):NEXT(4518$);

4518$         ASSIGN:        Create for shipment c shift2 c3.NumberOut=Create for shipment c shift2 c3.NumberOut + 1:NEXT(356$);


;
;
;     Model statements for module:  Create 112
;

4521$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sc2ship# c4:MinutesToBaseTime(1440):NEXT(4522$);

4522$         ASSIGN:        Create for shipment c shift2 c4.NumberOut=Create for shipment c shift2 c4.NumberOut + 1:NEXT(418$);


;
;
;     Model statements for module:  Create 113
;

4525$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sc2ship# c5:MinutesToBaseTime(1440):NEXT(4526$);

4526$         ASSIGN:        Create for shipment c shift2 c5.NumberOut=Create for shipment c shift2 c5.NumberOut + 1:NEXT(480$);









